File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed
site/src/components/WorkspaceSchedule Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,18 @@ export const WorkspaceSchedule: FC<WorkspaceScheduleProps> = ({
97
97
onDeadlinePlus,
98
98
} ) => {
99
99
const styles = useStyles ( )
100
+ const editDeadlineButtons = shouldDisplayPlusMins ( workspace ) ? (
101
+ < div >
102
+ < Stack direction = "row" >
103
+ < Button className = { styles . editDeadline } onClick = { onDeadlineMinus } >
104
+ < span className = { styles . scheduleLabel } > { Language . editDeadlineMinus } </ span >
105
+ </ Button >
106
+ < Button className = { styles . editDeadline } onClick = { onDeadlinePlus } >
107
+ < span className = { styles . scheduleLabel } > { Language . editDeadlinePlus } </ span >
108
+ </ Button >
109
+ </ Stack >
110
+ </ div >
111
+ ) : null
100
112
101
113
return (
102
114
< div className = { styles . schedule } >
@@ -117,16 +129,7 @@ export const WorkspaceSchedule: FC<WorkspaceScheduleProps> = ({
117
129
{ Language . autoStopDisplay ( workspace ) }
118
130
</ span >
119
131
</ div >
120
- < div >
121
- < Stack direction = "row" >
122
- < Button className = { styles . editDeadline } onClick = { onDeadlineMinus } >
123
- < span className = { styles . scheduleLabel } > { Language . editDeadlineMinus } </ span >
124
- </ Button >
125
- < Button className = { styles . editDeadline } onClick = { onDeadlinePlus } >
126
- < span className = { styles . scheduleLabel } > { Language . editDeadlinePlus } </ span >
127
- </ Button >
128
- </ Stack >
129
- </ div >
132
+ { editDeadlineButtons }
130
133
< div >
131
134
< Link
132
135
className = { styles . scheduleAction }
You can’t perform that action at this time.
0 commit comments