Skip to content
This repository was archived by the owner on Apr 5, 2022. It is now read-only.

Commit 31c5eda

Browse files
committed
format
1 parent 81cfa6a commit 31c5eda

3 files changed

Lines changed: 22 additions & 19 deletions

File tree

packages/visual-stack/src/components/TopNav/CjSupportLink.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,16 @@ export const CjSupportLink = ({ className, title, link, ...restProps }) => {
2121
align="center"
2222
className="vs-topnav-action"
2323
>
24-
<Text id="topnav-help-icon" className="vs-topnav-action vs-topnav-text">
24+
<Text
25+
id="topnav-help-icon"
26+
className="vs-topnav-action vs-topnav-text"
27+
>
2528
<InformationOutlineIcon />
2629
</Text>
27-
<Text id="topnav-help-title" className="vs-topnav-action vs-topnav-text">
30+
<Text
31+
id="topnav-help-title"
32+
className="vs-topnav-action vs-topnav-text"
33+
>
2834
{title}
2935
</Text>
3036
</Box>

packages/visual-stack/src/components/TopNav/TopNav.js

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,25 @@ import CJLogo from '../../components/CJLogo';
44
import PropTypes from 'prop-types';
55

66
export const TopNav = ({
7-
className,
8-
title,
9-
subtitle,
10-
actionChildren,
11-
children,
12-
contentSize,
13-
...restProps
14-
}) => {
15-
7+
className,
8+
title,
9+
subtitle,
10+
actionChildren,
11+
children,
12+
contentSize,
13+
...restProps
14+
}) => {
1615
return (
1716
<div {...restProps} className={cn(`vs-topnav`, className)}>
1817
<div className="vs-topnav-header vs-topnav-page-title">
1918
<div className="vs-topnav-logo-title-container">
2019
<div className="vs-topnav-logo-container">
21-
<span>{<CJLogo/>}</span>
20+
<span>{<CJLogo />}</span>
2221
</div>
2322
<h1 className="vs-topnav-title">{title}</h1>
2423
</div>
25-
{subtitle ? <div className={"vs-topnav-text"}>{subtitle}</div> : ""}
26-
<div className="vs-topnav-button-bar">
27-
{actionChildren}
28-
</div>
24+
{subtitle ? <div className={'vs-topnav-text'}>{subtitle}</div> : ''}
25+
<div className="vs-topnav-button-bar">{actionChildren}</div>
2926
</div>
3027
<div
3128
className={cn(

packages/visual-stack/src/components/TopNav/tests/index.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ describe('CjSupportLink', () => {
7575
const wrapper = mount(<CjSupportLink title="title" link="link" />);
7676
expect(wrapper.find(CjSupportLink).prop('title')).toBe('title');
7777
expect(wrapper.find(CjSupportLink).prop('link')).toBe('link');
78-
expect(wrapper.find('.vs-topnav-action.vs-topnav-text>#topnav-help-title').text()).toEqual(
79-
'title'
80-
);
78+
expect(
79+
wrapper.find('.vs-topnav-action.vs-topnav-text>#topnav-help-title').text()
80+
).toEqual('title');
8181
expect(wrapper.find('.vs-cj-support-link-container').props().href).toEqual(
8282
'link'
8383
);

0 commit comments

Comments
 (0)