feat: support readonly config and no docker sock
This commit is contained in:
parent
029f395673
commit
e216d4171f
7 changed files with 139 additions and 87 deletions
|
|
@ -7,9 +7,11 @@ import Button from '~/components/Button'
|
|||
|
||||
type Properties = {
|
||||
readonly isEnabled: boolean;
|
||||
// eslint-disable-next-line react/boolean-prop-naming
|
||||
readonly disabled?: boolean;
|
||||
}
|
||||
|
||||
export default function Modal({ isEnabled }: Properties) {
|
||||
export default function Modal({ isEnabled, disabled }: Properties) {
|
||||
const [isOpen, setIsOpen] = useState(false)
|
||||
const fetcher = useFetcher()
|
||||
|
||||
|
|
@ -18,6 +20,7 @@ export default function Modal({ isEnabled }: Properties) {
|
|||
<Button
|
||||
variant='emphasized'
|
||||
className='w-fit text-sm'
|
||||
disabled={disabled}
|
||||
onClick={() => {
|
||||
setIsOpen(true)
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue