Commit 7bc5017
authored
fix(examples/kitchen-sink): swap broken React.createElement logo for data URI (#121)
The previous `logo: () => React.createElement(CiderpressLogo)` form failed
to load because `react` is not a direct dependency of the example
workspace, so the config loader's Node-side resolution threw
"Cannot find module 'react'" and the dev server refused to start.
Switching to the LogoImage object form (`{ src, alt }`) keeps the
function-form `logo` demo intact (proves the NavLogo portal pipeline,
re-runs on theme change, reads `theme.colors.brand`) without requiring
a React import — the config loader runs in Node, no JSX needed.
Renders an inline data URI "ACME" wordmark in the active theme's
brand color so the kitchen-sink example visibly differs from the
auto-generated `/logo.svg` shown by examples/simple.1 parent f71d7f4 commit 7bc5017
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| |||
0 commit comments