refactor: enforce frontend view model boundaries
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import "./styles.css";
|
||||
import {
|
||||
colorsTuple,
|
||||
createTheme,
|
||||
@@ -11,8 +10,11 @@ import {
|
||||
} from "@mantine/core";
|
||||
import designTokens from "@wealthledger/tokens/tokens.json";
|
||||
|
||||
import "./styles.css";
|
||||
|
||||
const { breakpoints, color, radius, shadows, spacing, typography }
|
||||
= designTokens;
|
||||
|
||||
const mapValues = <T, U>(values: Record<string, T>, convert: (value: T) => U) =>
|
||||
Object.fromEntries(
|
||||
Object.entries(values).map(([name, value]) => [name, convert(value)]),
|
||||
|
||||
Reference in New Issue
Block a user