fix home page button icon, add button for settings

This commit is contained in:
marlon-erler
2026-04-08 20:35:06 +00:00
parent ca674e16fa
commit b1030f2630
4 changed files with 27 additions and 9 deletions
+6 -2
View File
@@ -1,9 +1,13 @@
import * as React from "bloatless-react";
export function HomePageButton(action: () => void, label: string) {
export function HomePageButton(
action: () => void,
label: string,
icon: string,
) {
return (
<button class="tile flex-no" on:click={action}>
<span class="icon">sync_alt</span>
<span class="icon">{icon}</span>
<div>
<span>{label}</span>
</div>
+7
View File
@@ -130,13 +130,20 @@ export function HomePage(
<hr></hr>
{HomePageButton(
fileTransferViewModel.showDirectionSelectionModal,
translations.homePage.settingsButton,
"settings",
)}
{HomePageButton(
fileTransferViewModel.showDirectionSelectionModal,
translations.homePage.transferDataButton,
"sync_alt",
)}
{HomePageButton(
storageViewModel.showStorageModal,
translations.homePage.manageStorageButton,
"hard_drive",
)}
<hr></hr>
+3 -3
View File
@@ -60,8 +60,8 @@ const englishTranslations = {
firstDayOfWeekLabel: "First day of week",
settingsButton: "Settings",
manageStorageButton: "Manage storage",
transferDataButton: "Data Transfer",
scrollToChatButton: "Chats",
@@ -344,8 +344,8 @@ const allTranslations: { [language: string]: typeof englishTranslations } = {
firstDayOfWeekLabel: "Erster Wochentag",
settingsButton: "Einstellungen",
manageStorageButton: "Daten verwalten",
transferDataButton: "Datenübertragung",
scrollToChatButton: "Chats",
@@ -597,8 +597,8 @@ const allTranslations: { [language: string]: typeof englishTranslations } = {
firstDayOfWeekLabel: "Primer día de la semana",
settingsButton: "Ajustes",
manageStorageButton: "Gestionar almacenamiento",
transferDataButton: "Transferencia de datos",
scrollToChatButton: "Chats",