Skip to content

Commit

Permalink
빌드 에러 수정했다
Browse files Browse the repository at this point in the history
  • Loading branch information
healtheloper committed Dec 13, 2023
1 parent 4bdf2d6 commit 9c48301
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 1 addition & 3 deletions packages/co-design-core/src/components/Badge/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export type BadgeProps<C extends React.ElementType> = PolymorphicComponentProps<

type BadgeComponent = <C extends React.ElementType = 'span'>(props: BadgeProps<C>) => React.ReactNode;

const Badge: BadgeComponent & { displayName?: string } = forwardRef(
export const Badge: BadgeComponent & { displayName?: string } = forwardRef(
<C extends React.ElementType = 'span'>(
{
children,
Expand Down Expand Up @@ -88,5 +88,3 @@ const Badge: BadgeComponent & { displayName?: string } = forwardRef(
);

Badge.displayName = '@co-design/core/Badge';

export default Badge;
4 changes: 1 addition & 3 deletions packages/co-design-core/src/components/Badge/Shield.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export type ShieldBadgeProps<C extends React.ElementType> = PolymorphicComponent

type ShieldBadgeComponent = <C extends React.ElementType = 'span'>(props: ShieldBadgeProps<C>) => React.ReactNode;

const ShieldBadge: ShieldBadgeComponent & { displayName?: string } = forwardRef(
export const ShieldBadge: ShieldBadgeComponent & { displayName?: string } = forwardRef(
<C extends React.ElementType = 'span'>(
{ title, message, component, className, co, overrideStyles, ...props }: ShieldBadgeProps<C>,
ref: PolymorphicRef<C>,
Expand Down Expand Up @@ -66,5 +66,3 @@ const ShieldBadge: ShieldBadgeComponent & { displayName?: string } = forwardRef(
);

ShieldBadge.displayName = '@co-design/core/ShieldBadge';

export default ShieldBadge;
6 changes: 4 additions & 2 deletions packages/co-design-core/src/components/Badge/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
export { default as Badge } from './Badge';
export { default as ShieldBadge } from './Shield';
export { Badge } from './Badge';
export { ShieldBadge } from './Shield';
export type { BadgeProps } from './Badge';
export type { ShieldBadgeProps } from './Shield';
2 changes: 1 addition & 1 deletion packages/co-design-core/src/components/Progress2/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { Progress2 } from './Progress2';
export type { ProgressProps } from './Progress2';
export type { Progress2Props } from './Progress2';
4 changes: 2 additions & 2 deletions packages/co-design-core/src/components/Stepper/Step.style.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { createStyles } from '@co-design/styles';
import { getFieldValue } from '../../utils';

interface StackStyles {
interface StepStyles {
variant?: 'wait' | 'current' | 'finished' | 'error';
labelPosition?: 'right' | 'bottom';
}

export default createStyles((theme, { variant, labelPosition }: StackStyles) => {
export default createStyles((theme, { variant, labelPosition }: StepStyles) => {
const backgroundColor = {
wait: theme.foundations.tokens.color.bg.bg_base_light_active,
current: theme.foundations.tokens.color.bg.bg_primary,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { createStyles } from '@co-design/styles';

interface StackStyles {
interface StepperStyles {
orientation?: 'horizontal' | 'vertical';
isNeedGap?: boolean;
}

export default createStyles((theme, { orientation, isNeedGap }: StackStyles) => {
export default createStyles((theme, { orientation, isNeedGap }: StepperStyles) => {
const stepSize = theme.foundations.tokens.size.size_09;
const stepsGap = theme.foundations.tokens.size.size_04;
return {
Expand Down
2 changes: 2 additions & 0 deletions packages/co-design-core/src/components/Stepper/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
export { Stepper } from './Stepper';
export { Step } from './Step';
export type { StepperProps } from './Stepper';
export type { StepProps } from './Step';

0 comments on commit 9c48301

Please sign in to comment.