mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: add updates functionality to app
This commit is contained in:
parent
f0e5fa925d
commit
8a2ccb2534
6 changed files with 147 additions and 53 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue