diff --git a/frontend/app-development/layout/PageHeader/SubHeader/SettingsModalButton/SettingsModal/components/Tabs/AccessControlTab/SelectAllowedPartyTypes/SelectAllowedPartyTypes.module.css b/frontend/app-development/layout/PageHeader/SubHeader/SettingsModalButton/SettingsModal/components/Tabs/AccessControlTab/SelectAllowedPartyTypes/SelectAllowedPartyTypes.module.css index a21b976bd23..6d35050a332 100644 --- a/frontend/app-development/layout/PageHeader/SubHeader/SettingsModalButton/SettingsModal/components/Tabs/AccessControlTab/SelectAllowedPartyTypes/SelectAllowedPartyTypes.module.css +++ b/frontend/app-development/layout/PageHeader/SubHeader/SettingsModalButton/SettingsModal/components/Tabs/AccessControlTab/SelectAllowedPartyTypes/SelectAllowedPartyTypes.module.css @@ -6,7 +6,3 @@ .header { background-color: var(--fds-colors-grey-100); } - -.checkboxContent { - width: 3rem; -} diff --git a/frontend/app-development/layout/PageHeader/SubHeader/SettingsModalButton/SettingsModal/components/Tabs/AccessControlTab/SelectAllowedPartyTypes/SelectAllowedPartyTypes.tsx b/frontend/app-development/layout/PageHeader/SubHeader/SettingsModalButton/SettingsModal/components/Tabs/AccessControlTab/SelectAllowedPartyTypes/SelectAllowedPartyTypes.tsx index a169a474cd5..4800cb26b1f 100644 --- a/frontend/app-development/layout/PageHeader/SubHeader/SettingsModalButton/SettingsModal/components/Tabs/AccessControlTab/SelectAllowedPartyTypes/SelectAllowedPartyTypes.tsx +++ b/frontend/app-development/layout/PageHeader/SubHeader/SettingsModalButton/SettingsModal/components/Tabs/AccessControlTab/SelectAllowedPartyTypes/SelectAllowedPartyTypes.tsx @@ -1,5 +1,4 @@ -import React, { useRef } from 'react'; -import { Table, Checkbox } from '@digdir/designsystemet-react'; +import React, { type ReactElement, useRef } from 'react'; import type { ApplicationMetadata, PartyTypesAllowed } from 'app-shared/types/ApplicationMetadata'; import classes from './SelectAllowedPartyTypes.module.css'; import { useTranslation } from 'react-i18next'; @@ -7,12 +6,15 @@ import { getPartyTypesAllowedOptions } from '../../../../utils/tabUtils/accessCo import { useAppMetadataMutation } from 'app-development/hooks/mutations'; import { AccessControlWarningModal } from '../AccessControWarningModal'; import { useStudioEnvironmentParams } from 'app-shared/hooks/useStudioEnvironmentParams'; +import { StudioCheckboxTable } from '@studio/components'; -export interface SelectAllowedPartyTypesProps { +export type SelectAllowedPartyTypesProps = { appMetadata: ApplicationMetadata; -} +}; -export const SelectAllowedPartyTypes = ({ appMetadata }: SelectAllowedPartyTypesProps) => { +export const SelectAllowedPartyTypes = ({ + appMetadata, +}: SelectAllowedPartyTypesProps): ReactElement => { const { t } = useTranslation(); const { org, app } = useStudioEnvironmentParams(); @@ -59,45 +61,27 @@ export const SelectAllowedPartyTypes = ({ appMetadata }: SelectAllowedPartyTypes return ( <> -