refactor(admin): replace raw form elements with shared Input, Textarea, and Switch components in RoleEditPage

This commit is contained in:
2026-04-19 16:56:50 -04:00
parent 10660bedf5
commit dcd4d9b9f9
6 changed files with 375 additions and 309 deletions
@@ -1,8 +1,8 @@
'use client';
import React, { useState, useEffect } from 'react';
import { useState, useEffect } from 'react';
import { useRouter } from 'next/navigation';
import { Card, Table, Button } from '@zen/core/shared/components';
import { Card, Table, Button, Badge } from '@zen/core/shared/components';
import { PencilEdit01Icon, Cancel01Icon } from '@zen/core/shared/icons';
import { useToast } from '@zen/core/toast';
@@ -30,9 +30,7 @@ const RolesPageClient = () => {
)}
</div>
{role.is_system && (
<span className="text-xs px-1.5 py-0.5 rounded bg-neutral-100 dark:bg-neutral-700 text-neutral-500 dark:text-neutral-400">
système
</span>
<Badge variant="default" size="sm">Système</Badge>
)}
</div>
),