params in url + error boundary
This commit is contained in:
@@ -3,11 +3,20 @@ import { Link } from "react-router-dom";
|
||||
|
||||
import { URLs } from "../../__data__/urls";
|
||||
|
||||
import { StyledHeader, Wrapper } from "./about.style";
|
||||
import { Header } from "./components";
|
||||
|
||||
export const AboutPage = () => {
|
||||
return (
|
||||
<div>
|
||||
<h1>about page</h1>
|
||||
{URLs.profile.isOn && <Link to={URLs.profile.getUrl()}>go to profile page</Link>}
|
||||
</div>
|
||||
<>
|
||||
<StyledHeader />
|
||||
<Wrapper>
|
||||
<StyledHeader />
|
||||
<Header />
|
||||
{URLs.profile.isOn && (
|
||||
<Link to={URLs.profile.getUrl('string-userId', 'string-projectId')}>go to profile page</Link>
|
||||
)}
|
||||
</Wrapper>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user