Skip to content

Commit

Permalink
fix: lint warning
Browse files Browse the repository at this point in the history
Signed-off-by: 8845musign <[email protected]>
  • Loading branch information
8845musign committed Oct 26, 2023
1 parent 15966b8 commit c09b5c9
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 23 deletions.
20 changes: 5 additions & 15 deletions src/components/react/ButtonIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { clsx } from "clsx";
import styles from "./ButtonIcon.module.css";
import type { FC, ReactNode } from "react";
import { clsx } from 'clsx';
import styles from './ButtonIcon.module.css';
import type { FC, ReactNode } from 'react';

interface Props {
children: ReactNode;
Expand All @@ -9,18 +9,8 @@ interface Props {
className?: string;
}

const ButtonIcon: FC<Props> = ({
children,
label,
onClick,
className = "",
}) => (
<button
onClick={onClick}
aria-label={label}
className={clsx(styles.button, className)}
title={label}
>
const ButtonIcon: FC<Props> = ({ children, label, onClick, className = '' }) => (
<button onClick={onClick} aria-label={label} className={clsx(styles.button, className)} title={label}>
{children}
</button>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/react/CopyButton.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { copyToClipboard } from '@utils/client';
import { clsx } from 'clsx';
import { useState } from 'react';
import { copyToClipboard } from '@utils/client';
import styles from './CopyButton.module.css';
import type { FC } from 'react';

Expand Down
2 changes: 1 addition & 1 deletion src/components/react/GlobalNavigation.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useStore } from '@nanostores/react';
import { $isMobileGlobalNavigationOpen } from '@store/navigation';
import clsx from 'clsx';
import FocusTrap from 'focus-trap-react';
import { $isMobileGlobalNavigationOpen } from '@store/navigation';
import styles from './GlobalNavigation.module.css';
import type { PostData } from '@types';
import type { FC } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion src/components/react/TableOfContents/TableOfContents.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { extractHeadingsFromMain, pickHeadingIds } from '@utils/client';
import { useEffect, useState } from 'react';
import { extractHeadingsFromMain, pickHeadingIds } from '@utils/client';
import LinkToHeading from './LinkToHeading';
import styles from './TableOfContents.module.css';
import type { Heading } from '@utils/client';
Expand Down
2 changes: 1 addition & 1 deletion src/components/react/WithGlobalNavigation.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useStore } from '@nanostores/react';
import { $isMobileGlobalNavigationOpen } from '@store/navigation';
import clsx from 'clsx';
import { $isMobileGlobalNavigationOpen } from '@store/navigation';
import GlobalNavigation from './GlobalNavigation';
import styles from './WithGlobalNavigation.module.css';
import type { PostData } from '@types';
Expand Down
2 changes: 1 addition & 1 deletion src/components/react/figures/color/ColorChip.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ButtonCopy from '@components/react/CopyButton';
import DesignToken from '@ubie/design-tokens';
import ButtonCopy from '@components/react/CopyButton';
import { validateContrast, convertHexWithPercentage, convertDisplayName, deleteAlpha } from '@utils/client';
import styles from './ColorChip.module.css';
import ColorChipValidationIndicator from './ColorChipValidationIndicator';
Expand Down
2 changes: 1 addition & 1 deletion src/components/react/figures/radius/TokenList.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import DesignToken from '@ubie/design-tokens';
import CopyButton from '@components/react/CopyButton';
import Table, { Row, TBody, THead, Cell, HeadCell, HeadRow } from '@components/react/Table';
import DesignToken from '@ubie/design-tokens';
import { pascalCaseToCSSVariables } from '@utils/client/css';
import { getKeys } from '@utils/client/object';
import type { FC } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion src/components/react/figures/spacing/TokenList.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import DesignToken from '@ubie/design-tokens';
import CopyButton from '@components/react/CopyButton';
import Table, { Row, TBody, THead, Cell, HeadCell, HeadRow } from '@components/react/Table';
import DesignToken from '@ubie/design-tokens';
import { pascalCaseToCSSVariables } from '@utils/client/css';
import { getKeys } from '@utils/client/object';
import type { FC } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion src/components/react/figures/typography/ExampleText.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import CopyButton from '@components/react/CopyButton';
import DesignTokens from '@ubie/design-tokens';
import CopyButton from '@components/react/CopyButton';
import { convertToTypographyCSS, convertToTypographyReact } from './scripts';
import type { FC } from 'react';

Expand Down

0 comments on commit c09b5c9

Please sign in to comment.