Skip to content
This repository was archived by the owner on Dec 28, 2022. It is now read-only.

Commit 0b1b057

Browse files
committed
Merge branch 'develop' into main
2 parents 4bcc224 + e7bb349 commit 0b1b057

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

front-end/src/screens/Sro/DayOff/ManageDayOff.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,16 +411,16 @@ const ManageDayOff = () => {
411411
</Text>
412412
</Grid>
413413
<Grid xs={4} justify={'flex-end'}>
414-
<Button
414+
{new Date(selectedValue) - new Date(moment()) > 0 && <Button
415415
size={'sm'}
416416
flat
417417
auto
418418
onPress={() => {
419419
setIsOpenCreateDayOff(true);
420420
}}
421421
>
422-
+ Thêm lịch nghỉ
423-
</Button>
422+
+ Thêm ngày nghỉ
423+
</Button>}
424424
</Grid>
425425
</Grid.Container>
426426
</Card.Header>

0 commit comments

Comments
 (0)