added features and fixes

This commit is contained in:
2026-07-02 15:34:00 +00:00
parent eb5b7d55a4
commit 89f8381e2d
30 changed files with 1718 additions and 206 deletions
+3 -2
View File
@@ -257,8 +257,9 @@ function RoleForm({ serverId, role, onClose }: RoleFormProps) {
);
}
export function RoleManager() {
const { serverId } = useParams<{ serverId: string }>();
export function RoleManager({ serverId: propServerId }: { serverId?: string } = {}) {
const { serverId: paramServerId } = useParams<{ serverId: string }>();
const serverId = propServerId || paramServerId;
const roles = useRoleStore((s) => s.roles);
const loading = useRoleStore((s) => s.loading);
const error = useRoleStore((s) => s.error);