Skip to content

Commit 87ff14e

Browse files
committed
Fix react coding standards errors
1 parent 743ab9e commit 87ff14e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/brnd/brnd-sportcenter-today.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ function BrndSportcenterToday({
2525
getTitle,
2626
}) {
2727
const [currentDate, setCurrentDate] = useState(new Date());
28-
const {
29-
title = "",
30-
} = content;
28+
const { title = "" } = content;
3129

3230
/** Imports language strings, sets localized formats. */
3331
useEffect(() => {
@@ -58,7 +56,10 @@ function BrndSportcenterToday({
5856
};
5957

6058
useEffect(() => {
61-
const dateAndTimeInterval = setInterval(() => setCurrentDate(new Date()), 1000);
59+
const dateAndTimeInterval = setInterval(
60+
() => setCurrentDate(new Date()),
61+
1000
62+
);
6263
return () => clearInterval(dateAndTimeInterval);
6364
}, []);
6465

@@ -71,9 +72,7 @@ function BrndSportcenterToday({
7172
<Header className="header" style={templateRootStyle}>
7273
<HeaderDate className="header-date">
7374
{currentDate &&
74-
capitalize(
75-
dayjs().locale(localeDa).format("dddd D. MMMM HH:mm")
76-
)}
75+
capitalize(dayjs().locale(localeDa).format("dddd D. MMMM HH:mm"))}
7776
</HeaderDate>
7877
</Header>
7978

src/brnd/brnd.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ Brnd.propTypes = {
122122
layout: PropTypes.string,
123123
image: PropTypes.arrayOf(PropTypes.string),
124124
fontSize: PropTypes.string,
125+
resourceUnavailableText: PropTypes.string,
125126
}).isRequired,
126127
executionId: PropTypes.string.isRequired,
127128
};

src/slides.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1724,4 +1724,4 @@ const slides = [
17241724
},
17251725
];
17261726

1727-
export default slides;
1727+
export default slides;

0 commit comments

Comments
 (0)