Skip to content

Commit 58a33b4

Browse files
committed
#259 Fix linter
1 parent ec50d89 commit 58a33b4

5 files changed

Lines changed: 7 additions & 8 deletions

File tree

welcome/src/components/Header.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import I18n from "../locale/I18n";
88

99
export const Header = () => {
1010

11-
const {user, config} = useAppStore(state => state);
11+
const {user} = useAppStore(state => state);
1212
const actions = [];
1313
return (
1414
<div className="header-container">
@@ -20,7 +20,6 @@ export const Header = () => {
2020
</Link>
2121
{(user && user.id) &&
2222
<UserMenu user={user}
23-
config={config}
2423
actions={actions}
2524
/>
2625
}

welcome/src/components/Page.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import "./Page.scss";
33

4-
export const Page = ({Icon, label, name, children}) => {
4+
export const Page = ({children}) => {
55

66
return (
77
<div className="page">

welcome/src/components/RoleMetaData.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ import I18n from "../locale/I18n";
55
import {isEmpty} from "../utils/Utils";
66

77

8-
export const RoleMetaData = ({role, provider, user}) => {
8+
export const RoleMetaData = ({role, provider, user}, index) => {
99
if (isEmpty((user))) {
1010
return null;
1111
}
1212
const organisation = provider["OrganizationName:en"] || "-";
1313
const items = [
1414
{
1515
label: I18n.t("users.organisation"),
16-
values: [<span>{organisation}</span>]
16+
values: [<span key={index}>{organisation}</span>]
1717
},
1818
{
1919
label: I18n.t("users.expiryDays"),
2020
values: [
21-
<span>{role.defaultExpiryDays}</span>]
21+
<span key={index}>{role.defaultExpiryDays}</span>]
2222
}
2323

2424
]

welcome/src/components/UserMenu.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {useAppStore} from "../stores/AppStore";
88
import {logout} from "../api";
99

1010

11-
export const UserMenu = ({user, config, actions}) => {
11+
export const UserMenu = ({user, actions}) => {
1212
const navigate = useNavigate();
1313

1414
const [dropDownActive, setDropDownActive] = useState(false);

welcome/src/pages/Login.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const Login = () => {
2020
if (buttonRef && buttonRef.current) {
2121
buttonRef.current.focus();
2222
}
23-
}, []) // eslint-disable-line react-hooks/exhaustive-deps
23+
}, [])
2424

2525
const toggleSpin = () => {
2626
setSpin(true);

0 commit comments

Comments
 (0)