Skip to content

Conversation

@Madhupatel08
Copy link
Collaborator

Hey @HarshCasper
this is PR for #38

Copy link
Owner

@HarshCasper HarshCasper left a comment

Choose a reason for hiding this comment

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

Tiny changes required because I merged the dev branch into yours. Good Work overall!

Once you are done, squash all your commits and add the commit message: feat: Add the Error 404 page

import Profile from "./Pages/UserProfile";
import profileData from "./Data/profileData.json";
import "./styles.css";
import NotFoundPage from './pages/NotFoundPage';
Copy link
Owner

Choose a reason for hiding this comment

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

Change this line to import Error from './Error.js';

<Switch>
<Route path="/profile" component={Profile} />
<Redirect to="/profile" />
<Route component={NotFoundPage} />
Copy link
Owner

Choose a reason for hiding this comment

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

Change this line to <Route component={Error} />

// import Logo from '../logo.png';
import React from "react";
import {NavLink} from "react-router-dom";
import Logo from './design/error-screen/sreens/error-sreen-desktop.png'
Copy link
Owner

Choose a reason for hiding this comment

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

Imports outside of the src directory are not yet supported.

// import Logo from '../logo.png';
import React from "react";
import {NavLink} from "react-router-dom";
import Logo from './design/error-screen/sreens/error-sreen-desktop.png'
Copy link
Owner

Choose a reason for hiding this comment

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

To add an Image, create a directory called assets, in the src, add the image there and reference it from there.

<BrowserRouter>
<Header />
<Switch>
<Route path="/profile" component={Profile} />
Copy link
Owner

Choose a reason for hiding this comment

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

Make it as a persisted route. Just change this to <Route path="/profile" component={Profile} exact />

@HarshCasper
Copy link
Owner

Hi @madhup01

Are there any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants