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);
|
---|
13 | const userId = localStorage.getItem("userId")
|
---|
14 | const [registered, setRegistered] = useState(false);
|
---|
15 | let checked = false;
|
---|
16 | const navigator = useNavigate()
|
---|
17 |
|
---|
18 | const handleClose = () => setShow(false);
|
---|
19 | const handleShow = (e) => {
|
---|
20 | e.preventDefault();
|
---|
21 | setShow(true);
|
---|
22 | };
|
---|
23 |
|
---|
24 |
|
---|
25 | return (
|
---|
26 | <>
|
---|
27 | <Navigation></Navigation>
|
---|
28 | <Container>
|
---|
29 | <Row className="mt-5 mb-3">
|
---|
30 | <Col>
|
---|
31 | <h3 style={{ color: "#159895" }}>
|
---|
32 | Немате доволни привилегии или бараниот ресурс не е достапен!
|
---|
33 | </h3>
|
---|
34 | </Col>
|
---|
35 | </Row>
|
---|
36 | <Row>
|
---|
37 | <Col>
|
---|
38 | <Button
|
---|
39 | type="button"
|
---|
40 | href={"/home"}
|
---|
41 | style={{
|
---|
42 | backgroundColor: "#159895",
|
---|
43 | border: "2px solid white",
|
---|
44 | }}
|
---|
45 | size="lg"
|
---|
46 | >
|
---|
47 | <span className="ikona my-1" color="white">
|
---|
48 | <IoBusinessSharp style={{ color: "white" }} />
|
---|
49 | </span>
|
---|
50 | <span className="ikona mx-3">Кон почетната страница</span>
|
---|
51 | </Button>
|
---|
52 | </Col>
|
---|
53 | </Row>
|
---|
54 | </Container>
|
---|
55 | </>
|
---|
56 | );
|
---|
57 | };
|
---|
58 |
|
---|
59 | export default NoBusinessRegisteredError;
|
---|