Skip to content

Commit a27cf72

Browse files
committed
lint: Fix formatting
1 parent 2c77b70 commit a27cf72

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

src/components/Team/MaybeYouCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import useIsDesktop from '@/hooks/useIsDesktop';
99
/**
1010
* Props for the MaybeYouCard component.
1111
*/
12-
interface MaybeYouCardProps {
12+
type MaybeYouCardProps = {
1313
/**
1414
* The title text for the card.
1515
*/
@@ -18,7 +18,7 @@ interface MaybeYouCardProps {
1818
* The descriptive text for the card.
1919
*/
2020
text: string;
21-
}
21+
};
2222

2323
/**
2424
* Card component serving as a call to action for users to contribute.

src/components/Team/TeamMemberCard.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@ import React from 'react';
55
import { useTranslation } from 'react-i18next';
66

77
import useIsDesktop from '@/hooks/useIsDesktop';
8+
89
import { Role as RoleType, TeamMember } from '../../interfaces/TeamMember';
910

1011
/**
1112
* Props for the TeamMemberCard component.
1213
*/
13-
interface TeamMemberCardProps {
14+
type TeamMemberCardProps = {
1415
/**
1516
* The team member data to display.
1617
*/
1718
member: TeamMember;
18-
}
19+
};
1920

2021
/**
2122
* Card component to display information about a team member.

src/interfaces/TeamMember.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Represents a specific role held by a team member,
55
* optionally associated with a project.
66
*/
7-
export interface Role {
7+
export type Role = {
88
/**
99
* The name of the role (e.g., "Lead Developer", "UI/UX Designer").
1010
*/
@@ -18,12 +18,12 @@ export interface Role {
1818
* Optional, for global roles like "Core Maintainer".
1919
*/
2020
project?: string;
21-
}
21+
};
2222

2323
/**
2424
* Represents a team member in the project.
2525
*/
26-
export interface TeamMember {
26+
export type TeamMember = {
2727
/**
2828
* Unique identifier for the team member.
2929
*/
@@ -44,4 +44,4 @@ export interface TeamMember {
4444
* URL to the team member's avatar image. Optional.
4545
*/
4646
avatarUrl?: string;
47-
}
47+
};

0 commit comments

Comments
 (0)