Skip to content

Commit

Permalink
fix: build 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-yn committed Jun 29, 2024
1 parent d473b52 commit 9046dee
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/composable/Button/helper/getSepcificButtonStatus.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { buttonStatusVariants } from '@/composable/LinkedButton/LinkedButton.css';

export const getSpecificButtonStatus =
process.env.STORYBOOK || process.env.NODE_ENV === 'test'
? (size: 'M' | 'L', status: 'DEFAULT' | 'HOVER' | 'PRESS') => {
return buttonStatusVariants[
(size + status) as 'MHOVER' | 'MPRESS' | 'LHOVER' | 'LPRESS'
];
}
: undefined;
// export const getSpecificButtonStatus =
// process.env.STORYBOOK || process.env.NODE_ENV === 'test'
// ? (size: 'M' | 'L', status: 'DEFAULT' | 'HOVER' | 'PRESS') => {
// return buttonStatusVariants[
// (size + status) as 'MHOVER' | 'MPRESS' | 'LHOVER' | 'LPRESS'
// ];
// }
// : undefined;

0 comments on commit 9046dee

Please sign in to comment.