hotfix: all 7 TypeScript errors fixed — NoAccessPage export + ABACRuleEditor size + ShareDialog icon types
This commit is contained in:
@@ -173,7 +173,6 @@ function ConditionRow({ condition, onChange, onRemove, canRemove }: ConditionRow
|
|||||||
placeholder={t('abac.fieldPlaceholder', 'Field')}
|
placeholder={t('abac.fieldPlaceholder', 'Field')}
|
||||||
value={condition.field}
|
value={condition.field}
|
||||||
onChange={(e) => onChange({ ...condition, field: e.target.value })}
|
onChange={(e) => onChange({ ...condition, field: e.target.value })}
|
||||||
size="sm"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="w-32">
|
<div className="w-32">
|
||||||
@@ -189,7 +188,6 @@ function ConditionRow({ condition, onChange, onRemove, canRemove }: ConditionRow
|
|||||||
placeholder={t('abac.valuePlaceholder', 'Value')}
|
placeholder={t('abac.valuePlaceholder', 'Value')}
|
||||||
value={condition.value}
|
value={condition.value}
|
||||||
onChange={(e) => onChange({ ...condition, value: e.target.value })}
|
onChange={(e) => onChange({ ...condition, value: e.target.value })}
|
||||||
size="sm"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{canRemove && (
|
{canRemove && (
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ interface ShareDialogProps {
|
|||||||
onClose: () => void;
|
onClose: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
const PERM_LEVELS: { value: PermissionLevel; label: string; icon: React.ComponentType<{ className?: string; strokeWidth?: number }>; desc: string }[] = [
|
const PERM_LEVELS: { value: PermissionLevel; label: string; icon: React.ComponentType<{ className?: string; strokeWidth?: number }> | any; desc: string }[] = [
|
||||||
{ value: 'read', label: 'Lesen', icon: Eye, desc: 'Inhalt ansehen' },
|
{ value: 'read', label: 'Lesen', icon: Eye, desc: 'Inhalt ansehen' },
|
||||||
{ value: 'write', label: 'Schreiben', icon: Pencil, desc: 'Inhalt bearbeiten, neue hinzufügen' },
|
{ value: 'write', label: 'Schreiben', icon: Pencil, desc: 'Inhalt bearbeiten, neue hinzufügen' },
|
||||||
{ value: 'admin', label: 'Admin', icon: Shield, desc: 'Bearbeiten + Löschen + Rechte verwalten' },
|
{ value: 'admin', label: 'Admin', icon: Shield, desc: 'Bearbeiten + Löschen + Rechte verwalten' },
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import { ShieldX } from 'lucide-react';
|
import { ShieldX } from 'lucide-react';
|
||||||
|
|
||||||
export default function NoAccessPage() {
|
export function NoAccessPage() {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col items-center justify-center min-h-screen bg-secondary-50 p-4">
|
<div className="flex flex-col items-center justify-center min-h-screen bg-secondary-50 p-4">
|
||||||
<ShieldX className="w-16 h-16 text-secondary-400 mb-4" strokeWidth={1.5} />
|
<ShieldX className="w-16 h-16 text-secondary-400 mb-4" strokeWidth={1.5} />
|
||||||
|
|||||||
Reference in New Issue
Block a user