mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-10-30 15:19:21 +00:00
Drop yarn 4 PnP completely; pnpm is now the only package manager. Touched: package.json packageManager yarn@4 → [email protected].0; resolutions → pnpm.overrides; yarn patches → pnpm.patchedDependencies; "pnpm workspace X" scripts → "pnpm --filter X exec"; drop @yarnpkg/types dep pnpm-workspace.yaml new — mirrors workspaces array .npmrc new — node-linker=hoisted; auto-install-peers patches/ new — moved from .yarn/patches/ apps/mobile/package.json eas-build-pre-install: corepack prep pnpm .yarn/ deleted (PnP state) .yarnrc.yml deleted yarn.lock deleted; pnpm-lock.yaml regenerated .github/actions/yarn/ renamed to .github/actions/pnpm/, rewritten for pnpm/action-setup + pnpm install --frozen-lockfile .github/actions/cache-deps cache paths: ~/.yarn/berry/cache → ~/.local/share/pnpm/store; hashFiles yarn.lock → pnpm-lock.yaml 10 workflows ./.github/actions/yarn → /pnpm; yarn workspaces foreach → pnpm -r; yarn workspace → pnpm --filter; yarn install --immutable → pnpm install --frozen-lockfile; cache: yarn → cache: pnpm This is a hard fork from upstream safe-global/safe-wallet-monorepo (which mandates yarn 4 in its AGENTS.md). Per directive: no yarn in luxfi/* — pnpm only. Upstream merges into this fork will need manual package-manager translation going forward.
19 lines
795 B
Diff
19 lines
795 B
Diff
diff --git a/Libraries/Utilities/Appearance.js b/Libraries/Utilities/Appearance.js
|
|
index 9b7758c3afa3c9874c911045e258abf5219e8af5..56e54167670befc79ee371a871138e4af2528313 100644
|
|
--- a/Libraries/Utilities/Appearance.js
|
|
+++ b/Libraries/Utilities/Appearance.js
|
|
@@ -99,7 +99,12 @@ export function setColorScheme(colorScheme: ColorSchemeName): void {
|
|
if (NativeAppearance != null) {
|
|
NativeAppearance.setColorScheme(colorScheme);
|
|
state.appearance = {
|
|
- colorScheme,
|
|
+ // When setting to 'unspecified', get the actual system color scheme.
|
|
+ // Fall back to the passed value if getColorScheme() returns null.
|
|
+ colorScheme:
|
|
+ colorScheme === 'unspecified'
|
|
+ ? (NativeAppearance.getColorScheme() ?? colorScheme)
|
|
+ : colorScheme,
|
|
};
|
|
}
|
|
}
|