mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-19 05:55:34 +09:00
fix(selfhost): branding image origins and theme colour (#3389)
This commit is contained in:
1 parent
cca8227ca6
commit
edc913096a
27 files changed
+724
-49
No files matched your search
@@ -34,6 +34,7 @@ import type React from 'react';
|
||||
import {useCallback} from 'react';
|
||||
|
||||
const PUSH_RELAY_NOTICE_URL = 'https://fluxer.com/push-relay';
|
||||
const DEFAULT_THEME_COLOR = 0x4641d9;
|
||||
|
||||
export type RegistrationMode = 'open' | 'approval' | 'closed';
|
||||
export type PremiumMode = 'mirror' | 'everyone';
|
||||
@@ -844,11 +845,11 @@ export const BrandingStep = observer(
|
||||
}: {
|
||||
productName: string;
|
||||
productNameError: boolean;
|
||||
themeColor: number;
|
||||
themeColor: number | null;
|
||||
assets: ReadonlyArray<BrandingAssetState>;
|
||||
disabled: boolean;
|
||||
onProductNameChange: (value: string) => void;
|
||||
onThemeColorChange: (value: number) => void;
|
||||
onThemeColorChange: (value: number | null) => void;
|
||||
onUploadAsset: (kind: SetupBrandingAssetKind) => void;
|
||||
onClearAsset: (kind: SetupBrandingAssetKind) => void;
|
||||
}) => {
|
||||
@@ -873,8 +874,11 @@ export const BrandingStep = observer(
|
||||
/>
|
||||
<ColorPickerField
|
||||
label={i18n._(THEME_COLOR_LABEL_DESCRIPTOR)}
|
||||
value={themeColor}
|
||||
value={themeColor ?? DEFAULT_THEME_COLOR}
|
||||
onChange={onThemeColorChange}
|
||||
defaultValue={DEFAULT_THEME_COLOR}
|
||||
isDefaultValue={themeColor === null}
|
||||
onReset={() => onThemeColorChange(null)}
|
||||
disabled={disabled}
|
||||
data-flx="app.self-hosted-setup-wizard-gate.theme-color-field"
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user