feat: support readonly config and no docker sock

This commit is contained in:
Aarnav Tale 2024-03-29 21:46:21 -04:00
parent 029f395673
commit e216d4171f
No known key found for this signature in database
7 changed files with 139 additions and 87 deletions

View file

@ -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)
}}