We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dee94b6 commit dc5a2ceCopy full SHA for dc5a2ce
src/layouts/AccountSubLayout.js
@@ -5,7 +5,7 @@ import Tiles from '../ui/Tiles'
5
import Card from '../ui/Card'
6
import { getProjects } from '../utils/api'
7
8
-const AccountSubLayout = ({ history }) => {
+const AccountSubLayout = ({ match, history }) => {
9
const [projects, setProjects] = useState(false)
10
11
useEffect(() => {
@@ -42,7 +42,7 @@ const AccountSubLayout = ({ history }) => {
42
style={{ height: '14em', cursor: 'pointer' }}
43
role="link"
44
onClick={() => history.push('')}>
45
- <Link className="block" to="#">
+ <Link className="block" to={`${match.url}/add`}>
46
Add Project
47
</Link>
48
</Card>
0 commit comments