chore: Apply linting fixes

This commit is contained in:
Bouncey
2019-02-16 08:20:53 +00:00
committed by mrugesh mohapatra
parent a63b84e748
commit 8e0237d042
16 changed files with 95 additions and 51 deletions

View File

@@ -1,14 +1,9 @@
import React from 'react';
import styleSheets from './styleSheets';
const preloads = styleSheets.map((styleSheet, i) => (
<React.Fragment>
<link
as='style'
href={styleSheet.props.href}
key={`preload-${i}`}
rel='preload'
/>
const preloads = styleSheets.map(styleSheet => (
<React.Fragment key={`preload-${styleSheet.props.href}`}>
<link as='style' href={styleSheet.props.href} rel='preload' />
{styleSheet}
</React.Fragment>
));