ddapac-react
Advanced tools
Comparing version 1.1.10 to 1.1.11
@@ -17,5 +17,5 @@ module.exports = { | ||
//Line length before wrapping | ||
printWidth: 100, | ||
printWidth: 120, | ||
//Avoid parenthesis around a sole arrow function parem | ||
arrowParens: "avoid", | ||
}; |
import { css } from '@emotion/core'; | ||
import ModernNormalise from 'utils/ModernNormalize'; | ||
export default css` | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
${ModernNormalise} | ||
/* Continue styling like normal */ | ||
`; |
import { AppRoute } from 'typings/AppRoute'; | ||
import Home from './routes/Home'; | ||
import Home from './routes/Home/Home'; | ||
@@ -4,0 +4,0 @@ const routes: ObjectMap<AppRoute> = { |
export default (name: string): string => { | ||
return `import React from 'react'; | ||
return `import React, { useState } from 'react'; | ||
//import { useStateValue } from 'StateProvider'; | ||
import styles from './${name}.styles'; | ||
const ${name} = (): React.ReactElement => { | ||
interface ${name}Props { | ||
title?: string | ||
} | ||
const ${name}: React.FC<${name}Props> = ({ title = 'This is a fresh boi' }) => { | ||
//const [globaleState, setGlobalState] = useStateValue(); | ||
//const [localState, setLocalState] = useState(null); | ||
//const [showTitle,] = useState<boolean>(true); | ||
return ( | ||
<div css={styles}> | ||
<p className="freshBoi">This is a fresh boi</p> | ||
{showTitle && ( | ||
<p className="freshBoi">{title}</p> | ||
)} | ||
</div> | ||
@@ -15,0 +21,0 @@ ); |
{ | ||
"name": "ddapac-react", | ||
"version": "1.1.10", | ||
"version": "1.1.11", | ||
"description": "An npm installer for Deloitte Digital's React Boilerplate", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
211566
57
1129