mirror of
https://github.com/luxfi/wallet.git
synced 2026-11-03 11:08:46 +00:00
Copies apps/extension, apps/mobile and 10 pkgs (wallet, ui, config, utilities, sessions, gating, notifications, analytics, eslint-config, prices) into a standalone pnpm workspace. Resolves merge conflict markers in extension and mobile package.json files, strips build artifacts (.wxt, .output, Pods).
20 lines
552 B
TypeScript
20 lines
552 B
TypeScript
import { MMKV } from 'react-native-mmkv'
|
|
// oxlint-disable-next-line universe-custom/no-relative-import-paths -- biome-parity: oxlint is stricter here
|
|
import { view } from './storybook.requires'
|
|
|
|
const mmkv = new MMKV({
|
|
id: 'storybook-wallet',
|
|
})
|
|
|
|
const StorybookUIRoot = view.getStorybookUI({
|
|
storage: {
|
|
getItem: (key): Promise<string | null> => Promise.resolve(mmkv.getString(key) || null),
|
|
setItem: (key, value): Promise<void> => {
|
|
mmkv.set(key, value)
|
|
return Promise.resolve()
|
|
},
|
|
},
|
|
})
|
|
|
|
export default StorybookUIRoot
|