Skip to content

Commit a59ccc4

Browse files
committed
style: assign arrow function before export default
1 parent c228106 commit a59ccc4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

www/src/components/cards.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const gridStyles = (columns = 2) => {
1111
}
1212
}
1313

14-
export default ({ children, columns, ...props }) => (
14+
const Cards = ({ children, columns, ...props }) => (
1515
<div
1616
{...props}
1717
sx={{
@@ -36,3 +36,5 @@ export default ({ children, columns, ...props }) => (
3636
{children}
3737
</div>
3838
)
39+
40+
export default Cards

www/src/components/code.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const LiveCode = ({ children }) => (
7474
</LiveProvider>
7575
)
7676

77-
export default (props) => {
77+
const Code = (props) => {
7878
if (props.live) {
7979
return <LiveCode {...props} />
8080
}
@@ -83,3 +83,5 @@ export default (props) => {
8383
}
8484
return <Prism {...props} />
8585
}
86+
87+
export default Code

0 commit comments

Comments
 (0)