[e6c2521] | 1 | import React, { useEffect } from "react";
|
---|
| 2 | import { useState } from "react";
|
---|
| 3 | import Navigation from "../Components/Layout/Navbar/Navigation";
|
---|
| 4 | import { Row, Col, Container, Button, Modal } from "react-bootstrap";
|
---|
| 5 | import { IoBusinessSharp } from "react-icons/io5";
|
---|
| 6 | import RegisterBusinessForm from "../Components/Forms/RegisterBusinessForm";
|
---|
| 7 | import useGet from "../Components/Hooks/useGet";
|
---|
| 8 | import { useNavigate } from "react-router-dom";
|
---|
| 9 |
|
---|
| 10 | const NoBusinessRegisteredError = (props) => {
|
---|
| 11 | const [show, setShow] = useState(false);
|
---|
| 12 | const [changed, setChanged] = useState(0);
|
---|
[5528b99] | 13 | const {data, isLoading} = useGet("/username")
|
---|
[e6c2521] | 14 | const userId = localStorage.getItem("userId")
|
---|
| 15 | const [registered, setRegistered] = useState(false);
|
---|
| 16 | let checked = false;
|
---|
| 17 | const navigator = useNavigate()
|
---|
| 18 |
|
---|
| 19 | const handleClose = () => setShow(false);
|
---|
| 20 | const handleShow = (e) => {
|
---|
| 21 | e.preventDefault();
|
---|
| 22 | setShow(true);
|
---|
| 23 | };
|
---|
| 24 |
|
---|
| 25 |
|
---|
| 26 | return (
|
---|
| 27 | <>
|
---|
| 28 | <Navigation></Navigation>
|
---|
| 29 | <Container>
|
---|
| 30 | <Row className="mt-5 mb-3">
|
---|
| 31 | <Col>
|
---|
| 32 | <h3 style={{ color: "#159895" }}>
|
---|
| 33 | Немате доволни привилегии или бараниот ресурс не е достапен!
|
---|
| 34 | </h3>
|
---|
| 35 | </Col>
|
---|
| 36 | </Row>
|
---|
| 37 | <Row>
|
---|
| 38 | <Col>
|
---|
| 39 | <Button
|
---|
| 40 | type="button"
|
---|
| 41 | href={"/home"}
|
---|
| 42 | style={{
|
---|
| 43 | backgroundColor: "#159895",
|
---|
| 44 | border: "2px solid white",
|
---|
| 45 | }}
|
---|
| 46 | size="lg"
|
---|
| 47 | >
|
---|
| 48 | <span className="ikona my-1" color="white">
|
---|
| 49 | <IoBusinessSharp style={{ color: "white" }} />
|
---|
| 50 | </span>
|
---|
| 51 | <span className="ikona mx-3">Кон почетната страница</span>
|
---|
| 52 | </Button>
|
---|
| 53 | </Col>
|
---|
| 54 | </Row>
|
---|
| 55 | </Container>
|
---|
| 56 | </>
|
---|
| 57 | );
|
---|
| 58 | };
|
---|
| 59 |
|
---|
| 60 | export default NoBusinessRegisteredError;
|
---|