Projekt

Obecné

Profil

« Předchozí | Další » 

Revize f41a4cd3

Přidáno uživatelem Václav Honzík před asi 2 roky(ů)

import menu start

re #9741

Zobrazit rozdíly:

frontend/src/features/Reusables/ButtonOpenableDialog.tsx
12 12
    maxWidth?: 'xs' | 'sm' | 'md' | 'lg' // the max width of the dialog
13 13
    open: boolean,
14 14
    setOpen: (open: boolean) => void
15
    size?: 'small' | 'medium' | 'large'
15 16
}
16 17

  
17 18

  
......
25 26
    children,
26 27
    maxWidth,
27 28
    open,
28
    setOpen
29
    setOpen,
30
    size
29 31
}) => {
30 32

  
31 33
    // Change maxWidth to large if its undefined
......
52 54
                onClick={onOpen}
53 55
                color={buttonColor}
54 56
                variant={buttonVariant}
57
                size={size ?? 'medium'}
55 58
            >
56 59
                {buttonText}
57 60
            </Button>

Také k dispozici: Unified diff