refactor(admin): rename partner to user in company assignment pages
This commit is contained in:
@@ -21,7 +21,7 @@ export default function CompaniesPage() {
|
||||
const [loading, setLoading] = useState(true)
|
||||
const [isOpen, setIsOpen] = useState(false)
|
||||
const [editingCompany, setEditingCompany] = useState<any>(null)
|
||||
|
||||
|
||||
const [name, setName] = useState('')
|
||||
const [street, setStreet] = useState('')
|
||||
const [zip, setZip] = useState('')
|
||||
@@ -91,7 +91,7 @@ export default function CompaniesPage() {
|
||||
|
||||
|
||||
const handleDelete = async (id: string, firmName: string) => {
|
||||
if (!confirm(`Firma "${firmName}" wirklich löschen? Alle zugewiesenen Partner werden getrennt.`)) return
|
||||
if (!confirm(`Firma "${firmName}" wirklich löschen? Alle zugewiesenen Benutzer werden getrennt.`)) return
|
||||
setDeletingId(id)
|
||||
try {
|
||||
await deleteCompany(id)
|
||||
@@ -259,7 +259,7 @@ export default function CompaniesPage() {
|
||||
className="bg-slate-50 dark:bg-white/5 border-slate-200 dark:border-white/10"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="company-street">Straße & Hausnummer</Label>
|
||||
<Input
|
||||
|
||||
Reference in New Issue
Block a user