mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-10-29 12:40:08 +08:00
use clsx
This commit is contained in:
1 parent
1fe24db8ae
commit
a588844ba5
1 file changed
+2
-1
@@ -1,4 +1,5 @@
|
||||
import { Box, BoxProps, useColorModeValue } from "@chakra-ui/react";
|
||||
import clsx from "clsx";
|
||||
import { PropsWithChildren } from "react";
|
||||
|
||||
export const SurveyCard = (props: PropsWithChildren<{ className?: string }>) => {
|
||||
@@ -8,7 +9,7 @@ export const SurveyCard = (props: PropsWithChildren<{ className?: string }>) =>
|
||||
gap: "2",
|
||||
borderRadius: "xl",
|
||||
shadow: "base",
|
||||
className: "p-4 sm:p-6 " + (props.className ?? ""),
|
||||
className: clsx("p-4 sm:p-6", props.className),
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user