1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

Advertise admin panel on setting page #2

This commit is contained in:
Cooper Ransom 2024-04-01 23:57:25 -04:00
parent aa39f42cd2
commit 43cc92913f

View file

@ -240,28 +240,33 @@ export function SettingsPage() {
{t("settings.account.title")} {t("settings.account.title")}
</Heading1> </Heading1>
{user.account && state.profile.state ? ( {user.account && state.profile.state ? (
<AccountSettings <div>
account={user.account} <AccountSettings
deviceName={state.deviceName.state} account={user.account}
setDeviceName={state.deviceName.set} deviceName={state.deviceName.state}
colorA={state.profile.state.colorA} setDeviceName={state.deviceName.set}
setColorA={(v) => { colorA={state.profile.state.colorA}
state.profile.set((s) => (s ? { ...s, colorA: v } : undefined)); setColorA={(v) => {
}} state.profile.set((s) => (s ? { ...s, colorA: v } : undefined));
colorB={state.profile.state.colorB} }}
setColorB={(v) => colorB={state.profile.state.colorB}
state.profile.set((s) => (s ? { ...s, colorB: v } : undefined)) setColorB={(v) =>
} state.profile.set((s) => (s ? { ...s, colorB: v } : undefined))
userIcon={state.profile.state.icon as any} }
setUserIcon={(v) => userIcon={state.profile.state.icon as any}
state.profile.set((s) => (s ? { ...s, icon: v } : undefined)) setUserIcon={(v) =>
} state.profile.set((s) => (s ? { ...s, icon: v } : undefined))
/> }
/>
<AdminPanelPart />
</div>
) : ( ) : (
<RegisterCalloutPart /> <div>
<RegisterCalloutPart />
<AdminPanelPart />
</div>
)} )}
</div> </div>
<AdminPanelPart />
<div id="settings-preferences" className="mt-48"> <div id="settings-preferences" className="mt-48">
<PreferencesPart <PreferencesPart
language={state.appLanguage.state} language={state.appLanguage.state}