Skip to content

Commit 38c2397

Browse files
committed
update icon imports
1 parent fa0631e commit 38c2397

File tree

10 files changed

+30
-30
lines changed

10 files changed

+30
-30
lines changed

src/frontend/components/EditMode/EditMode.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { PropsWithChildren } from 'react';
22
import { useDashboard } from '@irdashies/context';
3-
import { Resize } from '@phosphor-icons/react';
3+
import { ResizeIcon } from '@phosphor-icons/react';
44

55
export const EditMode = ({ children }: PropsWithChildren) => {
66
const { editMode } = useDashboard();
@@ -9,7 +9,7 @@ export const EditMode = ({ children }: PropsWithChildren) => {
99
<div className="relative w-full h-full">
1010
<div className="animate-pulse-border z-20 absolute w-full h-full border-solid border-2 border-sky-500 cursor-move">
1111
<div className="flex items-center gap-2 absolute top-0 right-0 py-1 px-2 bg-sky-500 text-white cursor-move">
12-
<Resize /> <span>Edit Mode</span>
12+
<ResizeIcon /> <span>Edit Mode</span>
1313
</div>
1414
</div>
1515
{children}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { SteeringWheel } from '@phosphor-icons/react';
1+
import { SteeringWheelIcon } from '@phosphor-icons/react';
22

33
export type InputSteerProps = object; // TODO
44

55
export const InputSteer = () => {
66
return (
77
<div className="w-[120px]">
8-
<SteeringWheel width="100%" height="100%" />
8+
<SteeringWheelIcon width="100%" height="100%" />
99
</div>
1010
);
1111
};

src/frontend/components/Settings/SettingsLayout.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Gear, Lock, LockOpen, PresentationChart } from '@phosphor-icons/react';
1+
import { GearIcon, LockIcon, LockOpenIcon, PresentationChartIcon } from '@phosphor-icons/react';
22
import { Link, Route, Routes, useLocation } from 'react-router-dom';
33
import { StandingsSettings } from './sections/StandingsSettings';
44
import { RelativeSettings } from './sections/RelativeSettings';
@@ -33,7 +33,7 @@ export const SettingsLayout = () => {
3333
<div className="flex flex-col gap-4 bg-slate-700 p-4 rounded-md w-full h-full">
3434
<div className="flex flex-row gap-4 items-center justify-between">
3535
<div className="flex flex-row gap-4 items-center">
36-
<Gear size={32} weight="bold" />
36+
<GearIcon size={32} weight="bold" />
3737
<h1 className="text-2xl font-bold">Overlay Setup</h1>
3838
</div>
3939
<div className="flex flex-row gap-2">
@@ -43,12 +43,12 @@ export const SettingsLayout = () => {
4343
>
4444
{isDemoMode ? (
4545
<>
46-
<PresentationChart size={20} weight="bold" />
46+
<PresentationChartIcon size={20} weight="bold" />
4747
<span>Exit Demo</span>
4848
</>
4949
) : (
5050
<>
51-
<PresentationChart size={20} weight="bold" />
51+
<PresentationChartIcon size={20} weight="bold" />
5252
<span>Demo Mode</span>
5353
</>
5454
)}
@@ -59,12 +59,12 @@ export const SettingsLayout = () => {
5959
>
6060
{isLocked ? (
6161
<>
62-
<Lock size={20} weight="bold" />
62+
<LockIcon size={20} weight="bold" />
6363
<span>Edit Layout (F6)</span>
6464
</>
6565
) : (
6666
<>
67-
<LockOpen size={20} weight="bold" />
67+
<LockOpenIcon size={20} weight="bold" />
6868
<span>Editing Layout (F6)</span>
6969
</>
7070
)}

src/frontend/components/Settings/sections/AboutSettings.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GithubLogo, DiscordLogo } from '@phosphor-icons/react';
1+
import { GithubLogoIcon, DiscordLogoIcon } from '@phosphor-icons/react';
22
import { useDashboard } from '@irdashies/context';
33

44
export const AboutSettings = () => {
@@ -27,7 +27,7 @@ export const AboutSettings = () => {
2727
rel="noopener noreferrer"
2828
className="flex items-center gap-2 text-slate-300 hover:text-white transition-colors w-fit"
2929
>
30-
<GithubLogo size={24} weight="bold" />
30+
<GithubLogoIcon size={24} weight="bold" />
3131
<span>GitHub Repository</span>
3232
</a>
3333

@@ -37,7 +37,7 @@ export const AboutSettings = () => {
3737
rel="noopener noreferrer"
3838
className="flex items-center gap-2 text-slate-300 hover:text-white transition-colors w-fit"
3939
>
40-
<DiscordLogo size={24} weight="bold" />
40+
<DiscordLogoIcon size={24} weight="bold" />
4141
<span>Join our Discord Community</span>
4242
</a>
4343
</div>

src/frontend/components/Standings/DriverClassHeader/DriverClassHeader.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Barbell, Users } from '@phosphor-icons/react';
1+
import { BarbellIcon, UsersIcon } from '@phosphor-icons/react';
22
import { getTailwindStyle } from '@irdashies/utils/colors';
33

44
interface DriverClassHeaderProps {
@@ -37,12 +37,12 @@ export const DriverClassHeader = ({
3737
>
3838
{sof ? (
3939
<>
40-
<Barbell /> <span>{sof?.toFixed(0)}</span>
40+
<BarbellIcon /> <span>{sof?.toFixed(0)}</span>
4141
</>
4242
) : (
4343
''
4444
)}{' '}
45-
<Users />
45+
<UsersIcon />
4646
<span>{totalDrivers}</span>
4747
</span>
4848
</div>

src/frontend/components/Standings/DriverInfoRow/DriverInfoRow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SpeakerHigh } from '@phosphor-icons/react';
1+
import { SpeakerHighIcon } from '@phosphor-icons/react';
22
import { getTailwindStyle } from '@irdashies/utils/colors';
33
import { formatTime } from '@irdashies/utils/time';
44

@@ -70,7 +70,7 @@ export const DriverInfoRow = ({
7070
<span
7171
className={`animate-pulse transition-[width] duration-300 ${radioActive ? 'w-4 mr-1' : 'w-0 overflow-hidden'}`}
7272
>
73-
<SpeakerHigh className="mt-[1px]" size={16} />
73+
<SpeakerHighIcon className="mt-[1px]" size={16} />
7474
</span>
7575
<span className="truncate">{name}</span>
7676
</div>

src/frontend/components/Standings/SessionFooter/SessionFooter.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Clock, Drop, RoadHorizon, Thermometer } from '@phosphor-icons/react';
1+
import { ClockIcon, DropIcon, RoadHorizonIcon, ThermometerIcon } from '@phosphor-icons/react';
22
import { useCurrentTime } from '../hooks/useCurrentTime';
33
import { useTrackWetness } from '../hooks/useTrackWetness';
44
import { useTrackTemperature } from '../hooks/useTrackTemperature';
@@ -10,19 +10,19 @@ export const SessionFooter = () => {
1010
return (
1111
<div className="bg-slate-900/70 text-sm px-3 py-1 flex justify-between">
1212
<div className="flex flex-1 grow gap-1 items-center">
13-
<Clock />
13+
<ClockIcon />
1414
<span>{time}</span>
1515
</div>
1616
<div className="flex flex-1 grow gap-1 items-center justify-center text-nowrap">
17-
<Drop />
17+
<DropIcon />
1818
<span>{trackWetness}</span>
1919
</div>
2020
<div className="flex flex-1 grow gap-1 items-center justify-center">
21-
<Thermometer />
21+
<ThermometerIcon />
2222
<span>{airTemp}</span>
2323
</div>
2424
<div className="flex flex-1 grow gap-1 items-center justify-end">
25-
<RoadHorizon />
25+
<RoadHorizonIcon />
2626
<span>{trackTemp}</span>
2727
</div>
2828
</div>

src/frontend/components/Weather/WeatherTemp/WeatherTemp.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Thermometer } from '@phosphor-icons/react';
1+
import { ThermometerIcon } from '@phosphor-icons/react';
22

33
export interface WeatherTempProps {
44
title: string;
@@ -9,7 +9,7 @@ export const WeatherTemp = ({ title, value }: WeatherTempProps) => {
99
return (
1010
<div className="bg-slate-800/70 p-2 rounded-sm w-full">
1111
<div className="flex flex-row gap-x-2 items-center text-sm">
12-
<Thermometer />
12+
<ThermometerIcon />
1313
<span className="grow">{title}</span>
1414
<div className="text-center">{value}</div>
1515
</div>

src/frontend/components/Weather/WeatherTrackWetness/WeatherTrackWetness.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Drop, Sun } from '@phosphor-icons/react';
1+
import { DropIcon, SunIcon } from '@phosphor-icons/react';
22

33
// Track wetness constants
44
const MIN_WETNESS = 1;
@@ -35,7 +35,7 @@ export const WeatherTrackWetness = ({
3535
return (
3636
<div className="bg-slate-800/70 p-2 rounded-sm">
3737
<div className="flex items-center flex-row gap-x-1 mt-1">
38-
<Sun />
38+
<SunIcon />
3939
<div className="w-full bg-gray-700 rounded-full h-2.5">
4040
<div
4141
role="progressbar"
@@ -46,7 +46,7 @@ export const WeatherTrackWetness = ({
4646
className="bg-blue-600 h-2.5 rounded-full transition-all duration-1000 ease-in-out"
4747
></div>
4848
</div>
49-
<Drop />
49+
<DropIcon />
5050
</div>
5151
<div className="text-center text-sm mt-1">{trackState}</div>
5252
</div>

src/frontend/components/Weather/WindDirection/WindDirection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useAutoAnimate } from '@formkit/auto-animate/react';
2-
import { Wind } from '@phosphor-icons/react';
2+
import { WindIcon } from '@phosphor-icons/react';
33

44
export interface WindDirectionProps {
55
speedMs?: number;
@@ -12,7 +12,7 @@ export const WindDirection = ({ speedMs, direction }: WindDirectionProps) => {
1212
return (
1313
<div className="bg-slate-800/70 p-2 rounded-sm">
1414
<div className="flex flex-row gap-x-2 items-center text-sm mb-3">
15-
<Wind />
15+
<WindIcon />
1616
<span className="grow">Wind</span>
1717
</div>
1818
<div

0 commit comments

Comments
 (0)