Skip to content

Commit 9a0ca07

Browse files
committed
chore: solve linter errors
1 parent 7267928 commit 9a0ca07

File tree

3 files changed

+51
-51
lines changed

3 files changed

+51
-51
lines changed
Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,62 @@
11
import PropTypes from 'prop-types';
22

33
export interface Usage {
4-
label: string;
5-
url: string;
4+
label: string;
5+
url: string;
66
}
77

88
export interface Group {
9-
id: number;
10-
name: string;
11-
usage: Usage[];
12-
version: number;
9+
id: number;
10+
name: string;
11+
usage: Usage[];
12+
version: number;
1313
}
1414

1515
export interface AvailableGroupParameters {
16-
courseId: string;
16+
courseId: string;
1717
}
1818

1919
export interface AvailableGroup {
20-
active?: boolean;
21-
description?: string;
22-
groups: Group[];
23-
id: number;
24-
name: string;
25-
parameters?: AvailableGroupParameters;
26-
readOnly?: boolean;
27-
scheme: string;
28-
version: number;
20+
active?: boolean;
21+
description?: string;
22+
groups: Group[];
23+
id: number;
24+
name: string;
25+
parameters?: AvailableGroupParameters;
26+
readOnly?: boolean;
27+
scheme: string;
28+
version: number;
2929
}
3030

3131
export const availableGroupPropTypes = {
32-
active: PropTypes.bool,
33-
description: PropTypes.string,
34-
groups: PropTypes.arrayOf(
32+
active: PropTypes.bool,
33+
description: PropTypes.string,
34+
groups: PropTypes.arrayOf(
35+
PropTypes.shape({
36+
id: PropTypes.number,
37+
name: PropTypes.string,
38+
usage: PropTypes.arrayOf(
3539
PropTypes.shape({
36-
id: PropTypes.number,
37-
name: PropTypes.string,
38-
usage: PropTypes.arrayOf(
39-
PropTypes.shape({
40-
label: PropTypes.string,
41-
url: PropTypes.string,
42-
}),
43-
),
44-
version: PropTypes.number,
40+
label: PropTypes.string,
41+
url: PropTypes.string,
4542
}),
46-
),
47-
id: PropTypes.number,
48-
name: PropTypes.string,
49-
parameters: PropTypes.shape({
50-
courseId: PropTypes.string,
43+
),
44+
version: PropTypes.number,
5145
}),
52-
readOnly: PropTypes.bool,
53-
scheme: PropTypes.string,
54-
version: PropTypes.number,
46+
),
47+
id: PropTypes.number,
48+
name: PropTypes.string,
49+
parameters: PropTypes.shape({
50+
courseId: PropTypes.string,
51+
}),
52+
readOnly: PropTypes.bool,
53+
scheme: PropTypes.string,
54+
version: PropTypes.number,
5555
};
5656

5757
export const MESSAGE_VALIDATION_TYPES = {
58-
error: 'error',
59-
warning: 'warning',
58+
error: 'error',
59+
warning: 'warning',
6060
} as const;
6161

6262
export type MessageValidationType = typeof MESSAGE_VALIDATION_TYPES[keyof typeof MESSAGE_VALIDATION_TYPES];

src/group-configurations/team-groups-section/TeamGroupsSection.test.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const renderComponent = (props = {}) => {
99
<TeamGroupsSection
1010
availableGroup={teamGroupsMock}
1111
{...props}
12-
/>
12+
/>,
1313
);
1414
};
1515

src/group-configurations/team-groups-section/index.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ import { AvailableGroup } from '../constants';
44
import ContentGroupCard from '../content-groups-section/ContentGroupCard';
55

66
interface TeamGroupsSectionProps {
7-
availableGroup: AvailableGroup;
7+
availableGroup: AvailableGroup;
88
}
99

1010
const TeamGroupsSection: React.FC<TeamGroupsSectionProps> = ({
11-
availableGroup: { groups, name }
11+
availableGroup: { groups, name },
1212
}) => (
13-
<div className="mt-2.5">
14-
<h2 className="lead text-black mb-3 configuration-section-name">{name}</h2>
15-
{groups.map((group) => (
16-
<ContentGroupCard
17-
group={group}
18-
key={group.id}
19-
readOnly
20-
/>
21-
))}
22-
</div>
13+
<div className="mt-2.5">
14+
<h2 className="lead text-black mb-3 configuration-section-name">{name}</h2>
15+
{groups.map((group) => (
16+
<ContentGroupCard
17+
group={group}
18+
key={group.id}
19+
readOnly
20+
/>
21+
))}
22+
</div>
2323
);
2424

2525
export default TeamGroupsSection;

0 commit comments

Comments
 (0)