mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 10:46:29 +00:00
Move RBAC permission row into user-role feature
Keep the role-permission row with the user-role components and update imports to use the canonical UI badge.
This commit is contained in:
@@ -15,9 +15,9 @@ import { Icons } from "@/components/Icons";
|
||||
import { type IMenu } from "./type";
|
||||
import { toast } from "sonner";
|
||||
import { TABLER_ICON_OPTIONS } from "@/lib/tabler-icons";
|
||||
import RbacBadge from "@/components/rbac/rbac-badge";
|
||||
import { Plus, X } from "lucide-react";
|
||||
import PermissionForm from "../../action-permissions/component/Form";
|
||||
import RbacBadge from "@/components/ui/rbac-badge";
|
||||
|
||||
type Props = {
|
||||
isUpdate?: boolean;
|
||||
|
||||
@@ -5,7 +5,7 @@ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/com
|
||||
import fetchData from '@/lib/fetchData';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { type IRole, type IRoleDetail } from '../component/type';
|
||||
import RolePermissionRow from '@/components/rbac/role-permission-row';
|
||||
import RolePermissionRow from "../component/role-permission-row";
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import React, { FC, useState, useMemo } from 'react';
|
||||
import { Input } from 'antd';
|
||||
import { Search, Shield, ShieldCheck } from 'lucide-react';
|
||||
import { type IMenu } from './type';
|
||||
import RolePermissionRow from '@/components/rbac/role-permission-row';
|
||||
import RolePermissionRow from './role-permission-row';
|
||||
|
||||
export interface IMenuPermissionTreeProps {
|
||||
menus: IMenu[];
|
||||
|
||||
+1
-1
@@ -4,8 +4,8 @@ import React, { FC } from 'react';
|
||||
import { Checkbox } from 'antd';
|
||||
import { ChevronDown, ChevronRight } from 'lucide-react';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import RbacBadge from '@/components/rbac/rbac-badge';
|
||||
import { cn } from '@/lib/utils';
|
||||
import RbacBadge from '../../../../../components/ui/rbac-badge';
|
||||
|
||||
export interface IRolePermissionNode {
|
||||
id: number;
|
||||
@@ -1,2 +0,0 @@
|
||||
export * from '@/components/ui/rbac-badge';
|
||||
export { default } from '@/components/ui/rbac-badge';
|
||||
Reference in New Issue
Block a user