File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
special-pages/pages/new-tab/app/components Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ import { useThemes } from '../customizer/themes.js';
55import { useSignal } from '@preact/signals' ;
66import { BackgroundConsumer } from './BackgroundProvider.js' ;
77import { CustomizerThemesContext } from '../customizer/CustomizerProvider.js' ;
8+ import { customizerData } from '../customizer/mocks.js' ;
9+
810const url = new URL ( window . location . href ) ;
911
1012const list = {
@@ -22,14 +24,7 @@ export function Components() {
2224 const validIds = ids . filter ( ( id ) => entryIds . includes ( id ) ) ;
2325 const filtered = validIds . length ? validIds . map ( ( id ) => /** @type {const } */ ( [ id , list [ id ] ] ) ) : entries ;
2426
25- /** @type {import('../../types/new-tab').CustomizerData } */
26- const data = {
27- background : { kind : 'default' } ,
28- userImages : [ ] ,
29- theme : 'system' ,
30- userColor : null ,
31- } ;
32- const dataSignal = useSignal ( data ) ;
27+ const dataSignal = useSignal ( customizerData ( ) ) ;
3328 const { main, browser, variant } = useThemes ( dataSignal ) ;
3429
3530 return (
You can’t perform that action at this time.
0 commit comments