Skip to content

Commit dc5a2ce

Browse files
committed
link to add new project
1 parent dee94b6 commit dc5a2ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/layouts/AccountSubLayout.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Tiles from '../ui/Tiles'
55
import Card from '../ui/Card'
66
import { getProjects } from '../utils/api'
77

8-
const AccountSubLayout = ({ history }) => {
8+
const AccountSubLayout = ({ match, history }) => {
99
const [projects, setProjects] = useState(false)
1010

1111
useEffect(() => {
@@ -42,7 +42,7 @@ const AccountSubLayout = ({ history }) => {
4242
style={{ height: '14em', cursor: 'pointer' }}
4343
role="link"
4444
onClick={() => history.push('')}>
45-
<Link className="block" to="#">
45+
<Link className="block" to={`${match.url}/add`}>
4646
Add Project
4747
</Link>
4848
</Card>

0 commit comments

Comments
 (0)