Skip to content

Commit

Permalink
fix: make buttons more intuitive
Browse files Browse the repository at this point in the history
  • Loading branch information
Valimp committed Jan 25, 2024
1 parent 2693c7f commit d800df5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion interface/components/ArchiveButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ export default function CloseButton(props: { id: number }) {

return (
<Button
variant="outlined"
color="success"
onClick={() => handleArchive(props.id)}
>
Archive
I fix it !
</Button>
)
}
3 changes: 2 additions & 1 deletion interface/components/CloseButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ export default function CloseButton(props: { id: number }) {

return (
<Button
variant="outlined"
color="error"
onClick={() => handleClose(props.id)}
>
Close
No problem
</Button>
)
}
4 changes: 2 additions & 2 deletions interface/components/Date.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function dateParser(date: string) {
// Take only ten first caracters of the date
let newDate = date.slice(0, 10).split('-').reverse().join('/')
// Take only the date and hour and minutes
let newDate = date.slice(0, 16).split('T').join(' / ')
return newDate
}

Expand Down

0 comments on commit d800df5

Please sign in to comment.