Skip to content

Commit ed9f1dd

Browse files
committed
fix: rebasing to master
1 parent 8f9ddd9 commit ed9f1dd

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

zubhub_frontend/zubhub/src/views/activity_details/ActivityDetailsV2.jsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ export default function ActivityDetailsV2(props) {
8181
props.navigate(`${props.location.pathname}/edit`);
8282
};
8383

84+
const handleCreateProject = () => {
85+
props.history.push('/projects/create', {activity_id: id});
86+
};
87+
8488
const toggleDialog = () => {
8589
setOpen(!open);
8690
props.navigate(window.location.pathname, { replace: true });
@@ -139,7 +143,11 @@ export default function ActivityDetailsV2(props) {
139143
</div>
140144

141145
<div style={{ display: 'flex', flexDirection: 'row', justifyContent: 'space-between', marginTop: 32, gap: 10 }}>
142-
<CustomButton primaryButtonOutlinedStyle style={{ borderRadius: 4 }}>
146+
<CustomButton
147+
primaryButtonOutlinedStyle
148+
style={{ borderRadius: 4 }}
149+
onclick={handleCreateProject}
150+
>
143151
Create this Project
144152
</CustomButton>
145153
<CustomButton

0 commit comments

Comments
 (0)