create-application-template 0.10.3 → 0.11.0
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/components/App.tsx +15 -2
package/package.json
CHANGED
package/src/components/App.tsx
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FC } from 'react'
|
|
1
2
|
import { ThemeProvider } from 'styled-components'
|
|
2
3
|
import GlobalStyles from '../styles/Global'
|
|
3
4
|
import theme from '../styles/theme'
|
|
@@ -7,7 +8,19 @@ import '../styles/env.css'
|
|
|
7
8
|
import cat from '../assets/cat.svg'
|
|
8
9
|
import { Counter } from './Counter'
|
|
9
10
|
|
|
10
|
-
export const App = () => {
|
|
11
|
+
export const App: FC = (): JSX.Element => {
|
|
12
|
+
const TemplateLink: FC = (): JSX.Element => {
|
|
13
|
+
return (
|
|
14
|
+
<app.StyledLink
|
|
15
|
+
href='https://www.npmjs.com/package/create-application-template'
|
|
16
|
+
rel='noreferrer'
|
|
17
|
+
target='_blank'
|
|
18
|
+
>
|
|
19
|
+
here
|
|
20
|
+
</app.StyledLink>
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
|
|
11
24
|
return (
|
|
12
25
|
<ThemeProvider theme={theme}>
|
|
13
26
|
<GlobalStyles />
|
|
@@ -15,7 +28,7 @@ export const App = () => {
|
|
|
15
28
|
<app.StyledHeader>
|
|
16
29
|
<h1>Create Application Template</h1>
|
|
17
30
|
<h2>Configured and under your control!</h2>
|
|
18
|
-
<h2>Access the template <
|
|
31
|
+
<h2>Access the template <TemplateLink />...</h2>
|
|
19
32
|
</app.StyledHeader>
|
|
20
33
|
<app.StyledSection>
|
|
21
34
|
<code className='card--env'>[NODE_ENV={process.env.NODE_ENV}]</code>
|