Skip to content

Commit 2d5ec67

Browse files
author
root
committed
fix: restore web ui typing support
1 parent 2262ebd commit 2d5ec67

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

packages/web/src/components/ui/button/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ type AnchorElementProps = ButtonBaseProps &
2828
export type ButtonProps = ButtonElementProps | AnchorElementProps;
2929

3030
const variantClassMap: Record<ButtonVariant, string> = {
31-
primary: styles.primary,
32-
secondary: styles.secondary,
33-
ghost: styles.ghost,
34-
danger: styles.danger,
31+
primary: styles.primary ?? "",
32+
secondary: styles.secondary ?? "",
33+
ghost: styles.ghost ?? "",
34+
danger: styles.danger ?? "",
3535
};
3636

3737
const sizeClassMap: Record<ButtonSize, string | undefined> = {

packages/web/src/vite-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite/client" />

0 commit comments

Comments
 (0)