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')}
|
||||
value={condition.field}
|
||||
onChange={(e) => onChange({ ...condition, field: e.target.value })}
|
||||
size="sm"
|
||||
/>
|
||||
</div>
|
||||
<div className="w-32">
|
||||
@@ -189,7 +188,6 @@ function ConditionRow({ condition, onChange, onRemove, canRemove }: ConditionRow
|
||||
placeholder={t('abac.valuePlaceholder', 'Value')}
|
||||
value={condition.value}
|
||||
onChange={(e) => onChange({ ...condition, value: e.target.value })}
|
||||
size="sm"
|
||||
/>
|
||||
</div>
|
||||
{canRemove && (
|
||||
|
||||
@@ -33,7 +33,7 @@ interface ShareDialogProps {
|
||||
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: 'write', label: 'Schreiben', icon: Pencil, desc: 'Inhalt bearbeiten, neue hinzufügen' },
|
||||
{ value: 'admin', label: 'Admin', icon: Shield, desc: 'Bearbeiten + Löschen + Rechte verwalten' },
|
||||
|
||||
Reference in New Issue
Block a user