Ui update #7

Merged
robin merged 13 commits from ui-update into main 2026-07-25 17:51:19 +00:00
2 changed files with 22 additions and 19 deletions
Showing only changes of commit a3cb0616c1 - Show all commits

No files matched your search

+13 -15
View File
@@ -151,8 +151,7 @@ export default function AdminPage() {
<div className="space-y-4">
<div>
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Liederbuch wählen</label>
<select
className="w-full bg-black border border-neutral-700 rounded-lg px-3 py-2 text-white focus:outline-none focus:border-blue-400 text-sm h-[38px]"
<Input.Select
value={selectedSongbookId}
onChange={(e) => setSelectedSongbookId(e.target.value)}
>
@@ -162,7 +161,7 @@ export default function AdminPage() {
{book.name}{book.language ? ` (${book.language})` : ""}
</option>
))}
</select>
</Input.Select>
</div>
<div className="grid grid-cols-3 gap-2">
<div className="col-span-1">
@@ -194,18 +193,17 @@ export default function AdminPage() {
<div className="space-y-4">
<div>
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Ziel-Liederbuch</label>
<select
className="w-full bg-black border border-neutral-700 rounded-lg px-3 py-2 text-white focus:outline-none focus:border-blue-400 text-sm h-[38px]"
value={selectedSongbookId}
onChange={(e) => setSelectedSongbookId(e.target.value)}
>
<option value="">-- Bitte wählen --</option>
{songbooks.map((book) => (
<option key={book.id} value={String(book.id)}>
{book.name}{book.language ? ` (${book.language})` : ""}
</option>
))}
</select>
<Input.Select
value={selectedSongbookId}
onChange={(e) => setSelectedSongbookId(e.target.value)}
>
<option value="">-- Bitte wählen --</option>
{songbooks.map((book) => (
<option key={book.id} value={String(book.id)}>
{book.name}{book.language ? ` (${book.language})` : ""}
</option>
))}
</Input.Select>
</div>
<div>
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Datei auswählen (.csv)</label>
+9 -4
View File
@@ -14,10 +14,15 @@ function Textfield({value, onChange, placeholder}: TextfieldProps) {
)
}
function Dropdown() {
return (
<p></p>
)
function Dropdown({ children, ...props }: ComponentPropsWithoutRef<"select">) {
return (
<select
className="w-full border border-neutral-700 rounded-lg px-3 py-2 focus:outline-none focus:border-blue-400 text-sm h-[38px]"
{...props}
>
{children}
</select>
);
}
export const Input = {