mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-27 19:42:11 +10:00
Prettier was not executed for TopbarDesktop
This commit is contained in:
parent
964b2ea7ed
commit
b59404ed25
4 changed files with 11 additions and 16 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import { fakeIntl } from '../../util/test-data';
|
||||
import TopbarDesktop from './TopbarDesktop';
|
||||
|
||||
|
||||
export const AuthenticatedDesktopTopbar = {
|
||||
component: TopbarDesktop,
|
||||
props: {
|
||||
|
|
|
|||
|
|
@ -49,12 +49,18 @@ const TopbarDesktop = props => {
|
|||
return (
|
||||
<div className={classes}>
|
||||
<NamedLink className={css.logoLink} name="LandingPage">
|
||||
<img className={css.logo} src={logo} alt={intl.formatMessage({ id: 'TopbarDesktop.logo' })} />
|
||||
<img
|
||||
className={css.logo}
|
||||
src={logo}
|
||||
alt={intl.formatMessage({ id: 'TopbarDesktop.logo' })}
|
||||
/>
|
||||
</NamedLink>
|
||||
{search}
|
||||
<div className={css.spacer} />
|
||||
<NamedLink className={css.createListingLink} name="NewListingPage">
|
||||
<span className={css.createListing}><FormattedMessage id="TopbarDesktop.createListing" /></span>
|
||||
<span className={css.createListing}>
|
||||
<FormattedMessage id="TopbarDesktop.createListing" />
|
||||
</span>
|
||||
</NamedLink>
|
||||
{inboxLink}
|
||||
{profileMenu}
|
||||
|
|
|
|||
|
|
@ -11,15 +11,9 @@ describe('TopbarDesktop', () => {
|
|||
const flattenedRoutes = flattenRoutes(routesConfiguration);
|
||||
const tree = renderDeep(
|
||||
<RoutesProvider flattenedRoutes={flattenedRoutes}>
|
||||
<TopbarDesktop
|
||||
isAuthenticated
|
||||
currentUserHasListings
|
||||
name="John Doe"
|
||||
intl={fakeIntl}
|
||||
/>
|
||||
<TopbarDesktop isAuthenticated currentUserHasListings name="John Doe" intl={fakeIntl} />
|
||||
</RoutesProvider>
|
||||
);
|
||||
expect(tree).toMatchSnapshot();
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
<nav className={css.withMargin}>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue