From b59404ed25d1cdc6459b3497e7cb74784376c99b Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Tue, 30 May 2017 16:56:01 +0300 Subject: [PATCH] Prettier was not executed for TopbarDesktop --- src/components/TopbarDesktop/TopbarDesktop.example.js | 1 - src/components/TopbarDesktop/TopbarDesktop.js | 10 ++++++++-- src/components/TopbarDesktop/TopbarDesktop.test.js | 8 +------- src/containers/StyleguidePage/StyleguidePage.js | 8 ++------ 4 files changed, 11 insertions(+), 16 deletions(-) diff --git a/src/components/TopbarDesktop/TopbarDesktop.example.js b/src/components/TopbarDesktop/TopbarDesktop.example.js index dc50f621..f9d48a9d 100644 --- a/src/components/TopbarDesktop/TopbarDesktop.example.js +++ b/src/components/TopbarDesktop/TopbarDesktop.example.js @@ -1,7 +1,6 @@ import { fakeIntl } from '../../util/test-data'; import TopbarDesktop from './TopbarDesktop'; - export const AuthenticatedDesktopTopbar = { component: TopbarDesktop, props: { diff --git a/src/components/TopbarDesktop/TopbarDesktop.js b/src/components/TopbarDesktop/TopbarDesktop.js index 727098c9..048f0386 100644 --- a/src/components/TopbarDesktop/TopbarDesktop.js +++ b/src/components/TopbarDesktop/TopbarDesktop.js @@ -49,12 +49,18 @@ const TopbarDesktop = props => { return (
- {intl.formatMessage({ + {intl.formatMessage({ {search}
- + + + {inboxLink} {profileMenu} diff --git a/src/components/TopbarDesktop/TopbarDesktop.test.js b/src/components/TopbarDesktop/TopbarDesktop.test.js index a56c64a9..19bc4062 100644 --- a/src/components/TopbarDesktop/TopbarDesktop.test.js +++ b/src/components/TopbarDesktop/TopbarDesktop.test.js @@ -11,15 +11,9 @@ describe('TopbarDesktop', () => { const flattenedRoutes = flattenRoutes(routesConfiguration); const tree = renderDeep( - + ); expect(tree).toMatchSnapshot(); }); - }); diff --git a/src/containers/StyleguidePage/StyleguidePage.js b/src/containers/StyleguidePage/StyleguidePage.js index 4f7d921b..64c79122 100644 --- a/src/containers/StyleguidePage/StyleguidePage.js +++ b/src/containers/StyleguidePage/StyleguidePage.js @@ -99,12 +99,8 @@ const Nav = props => { const filteredGroups = groups.filter(g => g !== ALL && g !== DEFAULT_GROUP); const basicStylings = ['typography', 'colors']; - const basicStylingGroups = filteredGroups - .filter(g => basicStylings.includes(g)) - .map(toGroupLink); - const componentGroups = filteredGroups - .filter(g => !basicStylings.includes(g)) - .map(toGroupLink); + const basicStylingGroups = filteredGroups.filter(g => basicStylings.includes(g)).map(toGroupLink); + const componentGroups = filteredGroups.filter(g => !basicStylings.includes(g)).map(toGroupLink); return (