@gasket/template-nextjs-express 7.0.3 → 7.0.4
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
CHANGED
package/template/pages/_app.tsx
CHANGED
|
@@ -6,9 +6,15 @@ import intlManager from '../intl';
|
|
|
6
6
|
|
|
7
7
|
const IntlMessagesProvider = withMessagesProvider(intlManager)(IntlProvider);
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Simple functional App component which can be wrapped
|
|
11
|
+
* @see https://nextjs.org/docs/pages/building-your-application/routing/custom-app
|
|
12
|
+
* @param {object} props - Component props
|
|
13
|
+
* @param {React.ComponentType} props.Component - Page component
|
|
14
|
+
* @param {object} props.pageProps - Page props
|
|
15
|
+
* @returns {React.ReactElement} App component
|
|
16
|
+
*/
|
|
17
|
+
function App({ Component, pageProps }: { Component: React.ComponentType; pageProps: object; }): React.ReactElement {
|
|
12
18
|
const router = useRouter();
|
|
13
19
|
|
|
14
20
|
return (
|
package/template/pages/index.tsx
CHANGED
|
@@ -6,7 +6,11 @@ import GasketEmblem from '@gasket/assets/react/gasket-emblem.js';
|
|
|
6
6
|
const pageStyle: CSSProperties = { textAlign: 'center' };
|
|
7
7
|
const logoStyle: CSSProperties = { width: '250px', height: '250px' };
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Index page component
|
|
11
|
+
* @returns {React.ReactElement} Index page
|
|
12
|
+
*/
|
|
13
|
+
function IndexPage(): React.ReactElement {
|
|
10
14
|
return (
|
|
11
15
|
<div style={ pageStyle }>
|
|
12
16
|
<Head title='{{{appName}}}' description='Gasket App'/>
|