hotfix: all 7 TypeScript errors fixed — NoAccessPage export + ABACRuleEditor size + ShareDialog icon types

This commit is contained in:
Agent Zero
2026-07-29 09:16:58 +02:00
parent c1416161c2
commit b545bf64b4
3 changed files with 2 additions and 4 deletions
@@ -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' },