Restyle account page

This commit is contained in:
AbdBarho
2023-01-20 11:05:56 +01:00
parent c81967fca9
commit 1fe24db8ae
3 changed files with 30 additions and 19 deletions
+4 -8
View File
@@ -1,22 +1,18 @@
import { Box, BoxProps, useColorModeValue } from "@chakra-ui/react";
import { PropsWithChildren } from "react";
interface SurveyCardProps {
className?: string;
children: React.ReactNode;
}
export const SurveyCard = (props: SurveyCardProps) => {
export const SurveyCard = (props: PropsWithChildren<{ className?: string }>) => {
const backgroundColor = useColorModeValue("white", "gray.700");
const BoxClasses: BoxProps = {
gap: "2",
borderRadius: "xl",
shadow: "base",
className: "p-4 sm:p-6",
className: "p-4 sm:p-6 " + (props.className ?? ""),
};
return (
<Box bg={backgroundColor} {...BoxClasses}>
<Box as="section" bg={backgroundColor} {...BoxClasses}>
{props.children}
</Box>
);