|
@@ -61,24 +61,24 @@ export const SettingsGeneral: Component = () => {
|
|
|
const actions =
|
|
const actions =
|
|
|
platform.update && platform.restart
|
|
platform.update && platform.restart
|
|
|
? [
|
|
? [
|
|
|
- {
|
|
|
|
|
- label: language.t("toast.update.action.installRestart"),
|
|
|
|
|
- onClick: async () => {
|
|
|
|
|
- await platform.update!()
|
|
|
|
|
- await platform.restart!()
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ label: language.t("toast.update.action.installRestart"),
|
|
|
|
|
+ onClick: async () => {
|
|
|
|
|
+ await platform.update!()
|
|
|
|
|
+ await platform.restart!()
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: language.t("toast.update.action.notYet"),
|
|
|
|
|
- onClick: "dismiss" as const,
|
|
|
|
|
- },
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ label: language.t("toast.update.action.notYet"),
|
|
|
|
|
+ onClick: "dismiss" as const,
|
|
|
|
|
+ },
|
|
|
|
|
+ ]
|
|
|
: [
|
|
: [
|
|
|
- {
|
|
|
|
|
- label: language.t("toast.update.action.notYet"),
|
|
|
|
|
- onClick: "dismiss" as const,
|
|
|
|
|
- },
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ label: language.t("toast.update.action.notYet"),
|
|
|
|
|
+ onClick: "dismiss" as const,
|
|
|
|
|
+ },
|
|
|
|
|
+ ]
|
|
|
|
|
|
|
|
showToast({
|
|
showToast({
|
|
|
persistent: true,
|
|
persistent: true,
|
|
@@ -131,7 +131,12 @@ export const SettingsGeneral: Component = () => {
|
|
|
const soundOptions = [...SOUND_OPTIONS]
|
|
const soundOptions = [...SOUND_OPTIONS]
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
- <ScrollFade direction="vertical" fadeStartSize={0} fadeEndSize={16} class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10">
|
|
|
|
|
|
|
+ <ScrollFade
|
|
|
|
|
+ direction="vertical"
|
|
|
|
|
+ fadeStartSize={0}
|
|
|
|
|
+ fadeEndSize={16}
|
|
|
|
|
+ class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10"
|
|
|
|
|
+ >
|
|
|
<div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-raised-stronger-non-alpha)_calc(100%_-_24px),transparent)]">
|
|
<div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-raised-stronger-non-alpha)_calc(100%_-_24px),transparent)]">
|
|
|
<div class="flex flex-col gap-1 pt-6 pb-8">
|
|
<div class="flex flex-col gap-1 pt-6 pb-8">
|
|
|
<h2 class="text-16-medium text-text-strong">{language.t("settings.tab.general")}</h2>
|
|
<h2 class="text-16-medium text-text-strong">{language.t("settings.tab.general")}</h2>
|