fix: downgrade tailwindcss to v3 (#151)

* fix: downgrade tailwindcss to v3

* chore: auto-fix linting and formatting issues
This commit is contained in:
UUBulb
2026-02-14 18:06:12 +08:00
committed by GitHub
parent 84ba33dac3
commit 2fe19adb96
9 changed files with 93 additions and 129 deletions
+2 -6
View File
@@ -465,9 +465,7 @@ export const ServerCard: React.FC<ServerCardProps> = ({ data, mutate }) => {
{publicNoteObj.billingDataMod
?.startDate
? new Date(
publicNoteObj
.billingDataMod!
.startDate!,
publicNoteObj.billingDataMod!.startDate!,
).toLocaleDateString()
: "YYYY-MM-DD"}
</Button>
@@ -492,9 +490,7 @@ export const ServerCard: React.FC<ServerCardProps> = ({ data, mutate }) => {
.billingDataMod
?.startDate
? new Date(
publicNoteObj
.billingDataMod!
.startDate!,
publicNoteObj.billingDataMod!.startDate!,
)
: undefined
}
+2 -1
View File
@@ -23,7 +23,8 @@ const badgeVariants = cva(
)
export interface BadgeProps
extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {}
extends HTMLAttributes<HTMLDivElement>,
VariantProps<typeof badgeVariants> {}
function Badge({ className, variant, ...props }: BadgeProps) {
return <div className={cn(badgeVariants({ variant }), className)} {...props} />
+2 -1
View File
@@ -31,7 +31,8 @@ const buttonVariants = cva(
)
export interface ButtonProps
extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
extends ButtonHTMLAttributes<HTMLButtonElement>,
VariantProps<typeof buttonVariants> {
asChild?: boolean
}
+1 -2
View File
@@ -67,8 +67,7 @@ const multiSelectVariants = cva(
* Props for MultiSelect component
*/
interface MultiSelectProps
extends
React.ButtonHTMLAttributes<HTMLButtonElement>,
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
VariantProps<typeof multiSelectVariants> {
/**
* An array of option objects to be displayed in the multi-select component.
+1 -2
View File
@@ -37,8 +37,7 @@ const sheetVariants = cva(
)
interface SheetContentProps
extends
ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,
extends ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,
VariantProps<typeof sheetVariants> {
setOpen: Dispatch<SetStateAction<boolean>>
}