Skip to content

Commit

Permalink
refactor: apply eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Quiddlee committed Jul 2, 2024
1 parent c4d8187 commit f3c1fbf
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 11 deletions.
5 changes: 4 additions & 1 deletion src/app/types/course.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ export type Course = {
mode: 'online' | 'offline';
detailsUrl: string;
enroll: string;
backgroundStyle: { backgroundColor: string; accentColor: string };
backgroundStyle: {
backgroundColor: string;
accentColor: string;
};
};
5 changes: 4 additions & 1 deletion src/shared/hooks/use-window-size/use-window-size.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { afterEach, beforeEach, describe, expect, it } from 'vitest';
import { useWindowSize } from '.';

describe('useWindowSize', () => {
let windowDimensions: { width: number; height: number };
let windowDimensions: {
width: number;
height: number;
};

beforeEach(() => {
windowDimensions = {
Expand Down
14 changes: 7 additions & 7 deletions src/widgets/breadcrumbs/ui/breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ export const Breadcrumbs = () => {
<li key={i}>
{!isLast
? (
<>
<Link to={to} className="link">
{crumb}
</Link>
<span className="separator">/</span>
</>
<>
<Link to={to} className="link">
{crumb}
</Link>
<span className="separator">/</span>
</>
)
: (
<span className="link disabled">{crumb}</span>
<span className="link disabled">{crumb}</span>
)}
</li>
);
Expand Down
6 changes: 5 additions & 1 deletion src/widgets/study-path/ui/stage-card/links/links.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import './links.scss';

interface LinksProps {
links: { href: string; linkTitle: string; isActive?: boolean }[];
links: {
href: string;
linkTitle: string;
isActive?: boolean;
}[];
}

export const Links = ({ links }: LinksProps) => {
Expand Down
6 changes: 5 additions & 1 deletion src/widgets/study-path/ui/stage-card/stage-card.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ export interface Stage {
title: string;
description?: string;
logoIcon?: string;
links?: { href: string; linkTitle: string; isActive?: boolean }[];
links?: {
href: string;
linkTitle: string;
isActive?: boolean;
}[];
topics?: string[];
actions?: string[];
imageSrc?: string;
Expand Down

0 comments on commit f3c1fbf

Please sign in to comment.