Skip to content

Commit 6d459b1

Browse files
committed
Fixed lint issues
1 parent 575e0c1 commit 6d459b1

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/components/Breadcrumbs/Breadcrumbs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import classNames from 'classnames';
22
import { Fragment } from 'react';
33
import { Link } from 'react-router-dom';
4-
import { BreadcrumbPill, Pill, PillProps } from '../Pill';
4+
import { BreadcrumbPill, PillProps } from '../Pill';
55

66
export type Breadcrumb =
77
| {

src/containers/PersonalSchedule/PersonalNormalAssignment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Assignment } from '@wca/helpers';
22
import classNames from 'classnames';
33
import { Link } from 'react-router-dom';
44
import { AssignmentLabel } from '@/components';
5-
import { BaseAssignmentPill, Pill } from '@/components/Pill';
5+
import { BaseAssignmentPill } from '@/components/Pill';
66
import { parseActivityCodeFlexible } from '@/lib/activityCodes';
77
import { ActivityWithRoomOrParent } from '@/lib/types';
88
import { roundTime } from '@/lib/utils';

src/pages/Competition/CompareSchedules/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { AssignmentCode, Person } from '@wca/helpers';
2-
import { Fragment, HtmlHTMLAttributes, useMemo, useRef } from 'react';
2+
import { Fragment, useMemo, useRef } from 'react';
33
import { Link } from 'react-router-dom';
44
import { Grid } from '@/components/Grid/Grid';
55
import { usePinnedPersons } from '@/hooks/UsePinnedPersons';
@@ -41,9 +41,9 @@ export default function CompareSchedules() {
4141
columnWidths={columnWidths}
4242
className="[&>div]:py-2 [&>div]:px-3 [&>div]:text-center sticky top-0"
4343
ref={headerRef}>
44-
<div className="font-bold bg-gray-100 text-center z-50">Time</div>
44+
<div className="z-50 font-bold text-center bg-gray-100">Time</div>
4545
{persons.map((p) => (
46-
<div key={p.wcaUserId} className="bg-gray-100 sticky top-0 z-50">
46+
<div key={p.wcaUserId} className="sticky top-0 z-50 bg-gray-100">
4747
<Link
4848
to={`/competitions/${competitionId}/persons/${p.registrantId}`}
4949
className="font-bold">
@@ -59,7 +59,7 @@ export default function CompareSchedules() {
5959
return (
6060
<Fragment key={day.date}>
6161
<div
62-
className="col-span-full font-bold bg-gray-100 sticky"
62+
className="sticky font-bold bg-gray-100 col-span-full"
6363
style={{
6464
top: headerHeight,
6565
}}>

src/pages/Competition/Schedule/EventActivity.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { Activity, AssignmentCode, Person } from '@wca/helpers';
22
import classNames from 'classnames';
33
import { useCallback, useEffect, useMemo } from 'react';
44
import { useTranslation } from 'react-i18next';
5-
import { Link, Navigate, useNavigate } from 'react-router-dom';
5+
import { Link, useNavigate } from 'react-router-dom';
66
import { Breadcrumbs } from '@/components/Breadcrumbs/Breadcrumbs';
77
import { CutoffTimeLimitPanel } from '@/components/CutoffTimeLimitPanel';
88
import { getRoomData, getRooms } from '@/lib/activities';
9-
import { activityCodeToName, parseActivityCodeFlexible } from '@/lib/activityCodes';
9+
import { parseActivityCodeFlexible } from '@/lib/activityCodes';
1010
import { getAllEvents, isOfficialEventId, isRankedBySingle } from '@/lib/events';
1111
import { renderResultByEventId } from '@/lib/results';
1212
import { formatDateTimeRange } from '@/lib/time';

0 commit comments

Comments
 (0)