Skip to content

Commit

Permalink
remove data viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKarow committed Mar 28, 2024
1 parent a3ff546 commit f269cd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const OrgLocationPage: NextPage<InferGetServerSidePropsType<typeof getServerSide
option: 'back',
backTo: 'dynamicText',
backToText: data.organization.name,
onClick: () =>
onClick: async () =>
router.push({
pathname: '/org/[slug]/edit',
query: { slug: data.organization.slug },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import { Icon } from '~ui/icon'
import { trpc as api } from '~ui/lib/trpcClient'
import { AttributeModal } from '~ui/modals/dataPortal/Attributes'
import { processAccessInstructions, processAttributes } from '~ui/modals/Service/processor'
import { DataViewer } from '~ui/other/DataViewer'

import { FormSchema, type TFormSchema } from './schemas'
import { useStyles } from './styles'
Expand All @@ -39,7 +38,7 @@ const isObject = (x: unknown): x is object => typeof x === 'object'

const _ServiceEditDrawer = forwardRef<HTMLButtonElement, ServiceEditDrawerProps>(
({ serviceId, ...props }, ref) => {
const [drawerOpened, drawerHandler] = useDisclosure(true)
const [drawerOpened, drawerHandler] = useDisclosure(false)
const { classes } = useStyles()
const variants = useCustomVariant()
const { t, i18n } = useTranslation(['common', 'gov-dist'])
Expand Down Expand Up @@ -283,7 +282,6 @@ const _ServiceEditDrawer = forwardRef<HTMLButtonElement, ServiceEditDrawerProps>
</Drawer.Content>
</Drawer.Root>
<Stack>
<DataViewer value={data} />
<Box component='button' onClick={drawerHandler.open} ref={ref} {...props} />
</Stack>
</>
Expand Down

0 comments on commit f269cd7

Please sign in to comment.