Skip to content

Commit

Permalink
revert overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Oct 21, 2024
1 parent edf4afc commit a0cc62d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,17 @@ export function DeletePluralOIDCClientModal({
open,
onClose,
provider,
insideModal = false,
refetch,
}: {
open: boolean
onClose: () => void
provider?: OidcProviderFragment
insideModal?: boolean
refetch: () => void
}) {
return (
<Modal
open={open}
onClose={onClose}
overlayStyles={{ background: insideModal ? 'none' : undefined }}
header={`Confirm deletion`}
size="large"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,12 @@ export function EditPluralOIDCClientModal({
onClose,
instanceName,
provider,
insideModal = false,
refetch,
}: {
open: boolean
onClose: () => void
instanceName: string
provider?: OidcProviderFragment
insideModal?: boolean
refetch: () => void
}) {
const theme = useTheme()
Expand All @@ -55,7 +53,6 @@ export function EditPluralOIDCClientModal({
<Modal
open={open}
onClose={onClose}
overlayStyles={{ background: insideModal ? 'none' : undefined }}
header={`${instanceName} - Edit Plural OIDC clients`}
size="large"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export function EditPluralOIDCClientsModal({

type TableMetaT = {
instanceName: string
insideModal?: boolean
refetch: () => void
}

Expand Down Expand Up @@ -116,8 +115,7 @@ const columns = [
const theme = useTheme()
const [editOpen, setEditOpen] = useState(false)
const [deleteOpen, setDeleteOpen] = useState(false)
const { instanceName, insideModal, refetch } = table.options
.meta as TableMetaT
const { instanceName, refetch } = table.options.meta as TableMetaT

return (
<div css={{ display: 'flex', gap: theme.spacing.small }}>
Expand All @@ -135,14 +133,12 @@ const columns = [
open={editOpen}
onClose={() => setEditOpen(false)}
instanceName={instanceName}
insideModal={insideModal}
provider={provider}
refetch={refetch}
/>
<DeletePluralOIDCClientModal
open={deleteOpen}
onClose={() => setDeleteOpen(false)}
insideModal={insideModal}
provider={provider}
refetch={refetch}
/>
Expand Down Expand Up @@ -250,7 +246,6 @@ export function EditPluralOIDCClients({
open={createOpen}
onClose={() => setCreateOpen(false)}
instanceName={instanceName}
insideModal={insideModal}
refetch={refetch}
/>
</div>
Expand Down

0 comments on commit a0cc62d

Please sign in to comment.