mirror of https://github.com/buster-so/buster.git
move permission group naming
This commit is contained in:
parent
7cbed232db
commit
c2499e5925
|
@ -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';
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue