create-pb-app 1.1.4 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/templates.js +4 -4
package/package.json
CHANGED
package/src/templates.js
CHANGED
|
@@ -93,6 +93,7 @@ import { Home } from '../pages';
|
|
|
93
93
|
import { createRouter, RouterView } from 'looserouter-test-pb';
|
|
94
94
|
import { Layout } from './layout';
|
|
95
95
|
import { makeStaticStyles } from 'css-engine-test-pb';
|
|
96
|
+
import { insertTheme, defaultTheme } from 'components-test-pb';
|
|
96
97
|
|
|
97
98
|
const useStaticStyles = makeStaticStyles({
|
|
98
99
|
'@font-face': {
|
|
@@ -108,6 +109,7 @@ const useStaticStyles = makeStaticStyles({
|
|
|
108
109
|
});
|
|
109
110
|
|
|
110
111
|
useStaticStyles();
|
|
112
|
+
insertTheme(defaultTheme);
|
|
111
113
|
|
|
112
114
|
const router = createRouter({
|
|
113
115
|
'/': (ctx) => <Layout><Home /></Layout>
|
|
@@ -120,12 +122,10 @@ render(<App />, document.body);
|
|
|
120
122
|
},
|
|
121
123
|
{
|
|
122
124
|
filePath: 'pages/home/home.tsx',
|
|
123
|
-
content: `
|
|
124
|
-
|
|
125
|
-
export function Home() {
|
|
125
|
+
content: `export function Home() {
|
|
126
126
|
return (
|
|
127
127
|
<>
|
|
128
|
-
<
|
|
128
|
+
<div>Hello World</div>
|
|
129
129
|
</>
|
|
130
130
|
);
|
|
131
131
|
}
|