Skip to content

Commit

Permalink
refactor: import types properly
Browse files Browse the repository at this point in the history
  • Loading branch information
aube-dev committed Aug 16, 2024
1 parent a300247 commit 2d24590
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/components/common/Button/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { type DetailedHTMLProps } from 'react';
import { type ButtonHTMLAttributes, type DetailedHTMLProps } from 'react';
import * as styles from './Button.css';
import { textStyle } from '@/styles/text.css';

interface ButtonProps
extends DetailedHTMLProps<
React.ButtonHTMLAttributes<HTMLButtonElement>,
ButtonHTMLAttributes<HTMLButtonElement>,
HTMLButtonElement
> {
variant: 'primary' | 'secondary';
Expand Down
4 changes: 3 additions & 1 deletion app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ import {
Scripts,
ScrollRestoration,
} from '@remix-run/react';
import { type ReactNode } from 'react';

import './root.css';
import '@/styles/theme.css';

export const Layout = ({ children }: { children: React.ReactNode }) => (
export const Layout = ({ children }: { children: ReactNode }) => (
<html lang="ko">
<head>
<meta charSet="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion app/styles/text.css.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComplexStyleRule, styleVariants } from '@vanilla-extract/css';
import { type ComplexStyleRule, styleVariants } from '@vanilla-extract/css';
import { Breakpoint } from '@/constants/style';
import { getMediaQuery } from '@/utils/style';

Expand Down

0 comments on commit 2d24590

Please sign in to comment.