feat: add updates functionality to app

This commit is contained in:
swve 2024-04-17 21:26:21 +02:00
parent f0e5fa925d
commit 8a2ccb2534
6 changed files with 147 additions and 53 deletions

View file

@ -12,6 +12,7 @@ type ModalParams = {
functionToExecute: any
dialogTrigger?: React.ReactNode
status?: 'warning' | 'info'
buttonid?: string
}
const ConfirmationModal = (params: ModalParams) => {
@ -58,6 +59,7 @@ const ConfirmationModal = (params: ModalParams) => {
</div>
<div className="flex flex-row-reverse pt-2">
<div
id={params.buttonid}
className={`rounded-md text-sm px-3 py-2 font-bold flex justify-center items-center hover:cursor-pointer ${
params.status === 'warning'
? warningButtonColors