move permission group naming

This commit is contained in:
Nate Kelley 2025-02-20 12:17:41 -07:00
parent 7cbed232db
commit c2499e5925
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
4 changed files with 4 additions and 8 deletions

View File

@ -1,7 +1,7 @@
import { BackButton } from '@/components/ui/buttons/BackButton';
import { createBusterRoute, BusterRoutes } from '@/routes/busterRoutes';
export const UsersBackButton = ({}: {}) => {
export const PermissionGroupBackButton = ({}: {}) => {
const route = createBusterRoute({ route: BusterRoutes.SETTINGS_PERMISSION_GROUPS });
const text = 'Permission groups';

View File

@ -2,7 +2,7 @@ import React from 'react';
import { PermissionGroupTitleAndDescription } from './PermissionGroupTitleAndDescription';
import { prefetchPermissionGroup } from '@/api/buster_rest';
import { HydrationBoundary, dehydrate } from '@tanstack/react-query';
import { UsersBackButton } from './PermissionBackButton';
import { PermissionGroupBackButton } from './PermissionBackButton';
import { PermissionAppSegments } from './PermissionAppSegments';
export default async function Layout({
@ -17,7 +17,7 @@ export default async function Layout({
return (
<HydrationBoundary state={dehydrate(queryClient)}>
<div className="flex h-full flex-col space-y-5 overflow-y-auto px-12 py-12">
<UsersBackButton />
<PermissionGroupBackButton />
<PermissionGroupTitleAndDescription permissionGroupId={permissionGroupId} />
<PermissionAppSegments permissionGroupId={permissionGroupId} />
{children}

View File

@ -1,8 +1,6 @@
'use client';
import { AppSegmented } from '@/components/ui';
import { SegmentedProps } from 'antd';
import Link from 'next/link';
import { useRouter } from 'next/navigation';
import React, { useMemo } from 'react';
import { DatasetApps, DataSetAppText } from '../config';

View File

@ -1,10 +1,8 @@
'use client';
import React, { useMemo } from 'react';
import React from 'react';
import { Button, Divider } from 'antd';
import { PreventNavigation } from '@/components/ui';
import { useDatasetContextSelector } from '@/context/Datasets';
import { useHotkeys } from 'react-hotkeys-hook';
import { AppContentHeader } from '../../../components/ui/layout/AppContentHeader';
import { useMemoizedFn } from 'ahooks';
import { useUserConfigContextSelector } from '@/context/Users';