mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-23 19:05:16 +02:00
refactor: enhance user settings components with updated icons, improved loading states, and consistent alert structures
This commit is contained in:
parent
c8f0f7cb1b
commit
49e1395299
16 changed files with 703 additions and 649 deletions
|
|
@ -349,14 +349,14 @@ export function RolesManager({ searchSpaceId }: { searchSpaceId: number }) {
|
|||
function PermissionsBadge({ permissions }: { permissions: string[] }) {
|
||||
if (permissions.includes("*")) {
|
||||
return (
|
||||
<div className="px-2.5 py-1 rounded-md bg-muted/50 border border-border/60 text-muted-foreground">
|
||||
<span className="text-xs font-medium whitespace-nowrap">Full access</span>
|
||||
<div className="rounded-md border-0 bg-muted px-1.5 py-0.5 text-muted-foreground">
|
||||
<span className="text-[10px] font-medium whitespace-nowrap">Full access</span>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<div className="px-2.5 py-1 rounded-md border border-border/60 bg-muted/50 text-muted-foreground">
|
||||
<span className="text-xs font-medium whitespace-nowrap">
|
||||
<div className="rounded-md border-0 bg-muted px-1.5 py-0.5 text-muted-foreground">
|
||||
<span className="text-[10px] font-medium whitespace-nowrap">
|
||||
{permissions.length} permissions
|
||||
</span>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue