Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TiagoRibeiro25
Copy link
Collaborator

Added a Route for Not Found plus his view

Copy link
Owner

@assebc assebc left a 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);
Copy link
Collaborator

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);
Copy link
Collaborator

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">
Copy link
Collaborator

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">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here with Space

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants