-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Added Route Not Found #50
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix your PR by following this pull_request_template.md that we recently added to our repositorie. Also fix and update your code by following this code_guidelines.md . Do not forget, when opening a pull request, please select @assebc and @galleonpt as reviewers and set yourself as assignee.
export const NotFound: FC = () => { | ||
const navigate = useNavigate(); | ||
|
||
const [isUserLogged, setIsUserLogged] = useState<boolean>(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useState(localStorage[ACCESS_TOKEN_KEY] ? true : false)
const [animateButton, setAnimateButton] = useState<boolean>(false); | ||
|
||
useEffect(() => { | ||
setIsUserLogged(localStorage[ACCESS_TOKEN_KEY] ? true : false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can remove this
|
||
return ( | ||
<Layout.Content className="content"> | ||
<div className="container"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try to use Space component from antd and see if it works correctly
</Typography.Paragraph> | ||
|
||
{animateButton && ( | ||
<div className="element-animation"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here with Space
Added a Route for Not Found plus his view