Skip to content

Commit 1815333

Browse files
Fix lint errors
1 parent e946ece commit 1815333

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

app/components/elements/Banner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import baseTheme from '../../themes/baseTheme';
1212
import Icon from './Icon';
1313
import Button from './Button';
1414

15-
const Banner = (props) => {
15+
export function Banner(props) {
1616
const {
1717
actionText,
1818
label,

app/components/elements/Container/Container.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Button from '../Button';
1111
import { borders } from '../../../themes/baseTheme';
1212
import personUtils from '../../../core/personutils';
1313

14-
const Container = (props) => {
14+
export function Container(props) {
1515
const { variant, title, subtitle, showBannerImage, children, actions, sx, ...themeProps } = props;
1616
const loggedInUserId = useSelector((state) => state.blip.loggedInUserId);
1717
const allUsersMap = useSelector((state) => state.blip.allUsersMap);
@@ -107,7 +107,7 @@ const Container = (props) => {
107107
)}
108108
</Box>
109109
);
110-
};
110+
}
111111

112112
Container.propTypes = {
113113
...BoxProps,

app/components/elements/MultiSelect.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import i18next from '../../core/language';
1414

1515
const t = i18next.t.bind(i18next);
1616

17-
export const MultiSelect = props => {
17+
export function MultiSelect(props) {
1818
const {
1919
disabled,
2020
innerRef,
@@ -65,7 +65,7 @@ export const MultiSelect = props => {
6565
value={intersectionBy(
6666
options,
6767
map(valueProp.split(','), value => ({ value })),
68-
'value',
68+
'value'
6969
)}
7070
onChange={selections => {
7171
const { value } = selections?.[0] || {};
@@ -148,7 +148,7 @@ export const MultiSelect = props => {
148148
)}
149149
</Box>
150150
);
151-
};
151+
}
152152

153153
MultiSelect.propTypes = {
154154
innerRef: PropTypes.oneOfType([

app/components/elements/Pill.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const namedPalletMap = {
2121
transparent: ['transparent', 'inherit'],
2222
};
2323

24-
const Pill = (props) => {
24+
export function Pill(props) {
2525
const {
2626
variant,
2727
colorPalette,
@@ -87,7 +87,7 @@ const Pill = (props) => {
8787
{text}
8888
</Text>
8989
);
90-
};
90+
}
9191

9292
Pill.propTypes = {
9393
...TextProps,

stories/Banner.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const bannerTextSuccess = () =>
4141
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor.'
4242
);
4343

44-
function createBanner(message, variant, dismissable = true, actionText) {
44+
function createBanner(message, variant, dismissable = true, actionText = '') {
4545
return { message, variant, dismissable, actionText };
4646
}
4747

0 commit comments

Comments
 (0)