diff --git a/src/components/Button/ToggleLayoutButtons.js b/src/components/Button/ToggleLayoutButtons.js index 9cbd9e21ae..ef540b40d5 100644 --- a/src/components/Button/ToggleLayoutButtons.js +++ b/src/components/Button/ToggleLayoutButtons.js @@ -8,13 +8,18 @@ type Props = { layout: LayoutName, onClick: (layoutName: LayoutName) => void } const ToggleLayoutButtons = (props: Props) => { const renderLayoutBtn = (layoutName: LayoutName) => ( - ) return ( -
+
{renderLayoutBtn('grid')} {renderLayoutBtn('list')}
diff --git a/src/components/Button/__tests__/stubs.js b/src/components/Button/__tests__/stubs.js index 37c968e14b..f143b36680 100644 --- a/src/components/Button/__tests__/stubs.js +++ b/src/components/Button/__tests__/stubs.js @@ -1,5 +1,5 @@ export const props = { target: '_blank', icon: 'star', - text: 'GitHub' + text: 'GitHub', } diff --git a/src/components/ContributorsList/__tests__/stubs.js b/src/components/ContributorsList/__tests__/stubs.js index 8a42e4dd9a..d563e533e2 100644 --- a/src/components/ContributorsList/__tests__/stubs.js +++ b/src/components/ContributorsList/__tests__/stubs.js @@ -1,4 +1,4 @@ export const props = { profile: 'https://github.com/profile', - avatar: 'https://github.com/avatar' + avatar: 'https://github.com/avatar', } diff --git a/src/components/GitmojiList/GitmojiCard/index.js b/src/components/GitmojiList/GitmojiCard/index.js index 36157ec17f..42f2c61623 100644 --- a/src/components/GitmojiList/GitmojiCard/index.js +++ b/src/components/GitmojiList/GitmojiCard/index.js @@ -4,7 +4,7 @@ type Props = { code: string, description: string, emoji: string, - name: string + name: string, } const GitmojiCard = (props: Props) => ( diff --git a/src/components/GitmojiList/GitmojiRaw/index.js b/src/components/GitmojiList/GitmojiRaw/index.js index 72df689d22..b51a9adb89 100644 --- a/src/components/GitmojiList/GitmojiRaw/index.js +++ b/src/components/GitmojiList/GitmojiRaw/index.js @@ -4,7 +4,7 @@ type Props = { code: string, description: string, emoji: string, - name: string + name: string, } const GitmojiRaw = (props: Props) => ( diff --git a/src/components/GitmojiList/__tests__/stubs.js b/src/components/GitmojiList/__tests__/stubs.js index a509fb0446..a0b2ac0d02 100644 --- a/src/components/GitmojiList/__tests__/stubs.js +++ b/src/components/GitmojiList/__tests__/stubs.js @@ -2,5 +2,5 @@ import { gitmojis } from '../../../data/gitmojis.json' export const props = { gitmojis: gitmojis.slice(0, 6), - layout: 'grid' + layout: 'grid', } diff --git a/src/components/GitmojiList/index.js b/src/components/GitmojiList/index.js index 21d9f9160f..ee11fff498 100644 --- a/src/components/GitmojiList/index.js +++ b/src/components/GitmojiList/index.js @@ -11,8 +11,8 @@ type Props = { code: string, description: string, emoji: string, - name: string - }> + name: string, + }>, } const GitmojiList = (props: Props) => { @@ -45,7 +45,7 @@ const GitmojiList = (props: Props) => { React.useEffect(() => { const clipboard = new Clipboard('.gitmoji-code, .gitmoji-emoji') - clipboard.on('success', function(e) { + clipboard.on('success', function (e) { window.ga('send', 'event', 'Gitmoji', 'Copy to Clipboard') const elementClasses = e.trigger.classList @@ -59,7 +59,7 @@ const GitmojiList = (props: Props) => { message: notificationMessage, layout: 'growl', effect: 'scale', - type: 'notice' + type: 'notice', }) notification.show() diff --git a/src/components/Icon/__tests__/stubs.js b/src/components/Icon/__tests__/stubs.js index 21b5563b2b..3301fe99df 100644 --- a/src/components/Icon/__tests__/stubs.js +++ b/src/components/Icon/__tests__/stubs.js @@ -1,3 +1,3 @@ export const props = { - name: 'star' + name: 'star', } diff --git a/src/components/Icon/definitions.js b/src/components/Icon/definitions.js index e796c156cc..0fac5f201a 100644 --- a/src/components/Icon/definitions.js +++ b/src/components/Icon/definitions.js @@ -58,11 +58,17 @@ export const IconDefinitions = () => ( grid - + list - + diff --git a/src/components/Layout/Logo/index.js b/src/components/Layout/Logo/index.js index 33eb592038..ad3274b6bb 100644 --- a/src/components/Layout/Logo/index.js +++ b/src/components/Layout/Logo/index.js @@ -6,7 +6,7 @@ import LOGO_STATUSES, { Sexy, Smiling, Sunglasses, - Tongue + Tongue, } from './statuses' export const getIconByStatus = (status: $Keys) => { diff --git a/src/components/Layout/Logo/statuses/index.js b/src/components/Layout/Logo/statuses/index.js index 9380237633..905b5a909c 100644 --- a/src/components/Layout/Logo/statuses/index.js +++ b/src/components/Layout/Logo/statuses/index.js @@ -210,7 +210,7 @@ const LOGO_STATUSES: Object = { SEXY: 'sexy', SMILING: 'smiling', SUNGLASSES: 'sunglasses', - TONGUE: 'tongue' + TONGUE: 'tongue', } export default LOGO_STATUSES diff --git a/src/components/Layout/__tests__/stubs.js b/src/components/Layout/__tests__/stubs.js index 3e0c0c96df..9550ed62e0 100644 --- a/src/components/Layout/__tests__/stubs.js +++ b/src/components/Layout/__tests__/stubs.js @@ -1,3 +1,3 @@ export const props = { - headerWithSocialButtons: true + headerWithSocialButtons: true, } diff --git a/src/components/Layout/index.js b/src/components/Layout/index.js index 57f1880d1e..4ea291b688 100644 --- a/src/components/Layout/index.js +++ b/src/components/Layout/index.js @@ -6,7 +6,11 @@ import Header from './Header' import Navigation from './Navigation' import Footer from './Footer' -type Props = { headerWithSocialButtons: boolean, layout: 'grid' | 'list', children: React.Node } +type Props = { + headerWithSocialButtons: boolean, + layout: 'grid' | 'list', + children: React.Node, +} const Layout = (props: Props) => ( <> diff --git a/src/components/SEO/__tests__/stubs.js b/src/components/SEO/__tests__/stubs.js index ac532c5e57..2fc5c64a68 100644 --- a/src/components/SEO/__tests__/stubs.js +++ b/src/components/SEO/__tests__/stubs.js @@ -1,4 +1,4 @@ export const props = { pageUrl: '/about', - pageTitle: 'About' + pageTitle: 'About', } diff --git a/src/pages/_document.js b/src/pages/_document.js index 0e7a4067d9..deb8e1664b 100644 --- a/src/pages/_document.js +++ b/src/pages/_document.js @@ -21,7 +21,7 @@ class InlineStylesHead extends Head { nonce={this.props.nonce} data-href={`${assetPrefix}/_next/${file}`} dangerouslySetInnerHTML={{ - __html: readFileSync(join(process.cwd(), '.next', file), 'utf-8') + __html: readFileSync(join(process.cwd(), '.next', file), 'utf-8'), }} /> )) @@ -44,7 +44,7 @@ class CustomDocument extends Document {