Skip to content

Commit 93cabf7

Browse files
committed
#4020 moved add button to top of column
1 parent 5b3d275 commit 93cabf7

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

  • src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/TaskList/v2

src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/TaskList/v2/TaskColumn.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,17 @@ export const TaskColumn = ({
9898
<Typography align="center" variant="h5">
9999
{statusNames[status]}
100100
</Typography>
101+
<NERButton
102+
sx={{
103+
marginTop: '5px',
104+
backgroundColor: theme.palette.secondary.contrastText,
105+
width: 'calc(100% - 10px)',
106+
marginX: '5px'
107+
}}
108+
onClick={() => setShowCreateTaskModal(true)}
109+
>
110+
+ Add A Task
111+
</NERButton>
101112
<Droppable droppableId={status}>
102113
{(droppableProvided, snapshot) => (
103114
<Box
@@ -132,17 +143,6 @@ export const TaskColumn = ({
132143
</Box>
133144
)}
134145
</Droppable>
135-
<NERButton
136-
sx={{
137-
marginTop: '5px',
138-
backgroundColor: theme.palette.secondary.contrastText,
139-
width: 'calc(100% - 10px)',
140-
marginX: '5px'
141-
}}
142-
onClick={() => setShowCreateTaskModal(true)}
143-
>
144-
+ Add A Task
145-
</NERButton>
146146
</Box>
147147
</>
148148
);

0 commit comments

Comments
 (0)