File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
plugins/info-cards/src/components Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 11import type { InfoRowI } from "../typings" ;
2- import { Box } from "@chakra-ui/react" ;
2+ import { Box , theme } from "@chakra-ui/react" ;
33import InfoCard from "./InfoCard" ;
44
55interface InfoRowProps {
66 infoRow : InfoRowI ;
77}
88export default function InfoRow ( { infoRow } : InfoRowProps ) : JSX . Element {
99 return (
10- < Box display = { "flex" } gap = { 4 } width = { "full" } justifyContent = { "center" } >
10+ < Box
11+ display = { "flex" }
12+ gap = { 4 }
13+ width = { "full" }
14+ justifyContent = { "center" }
15+ style = {
16+ infoRow . cards . length < 1
17+ ? { height : "1px" , backgroundColor : theme . colors . gray [ 100 ] }
18+ : { }
19+ }
20+ >
1121 { infoRow . cards . map ( ( card ) => (
1222 < InfoCard key = { card . id } card = { card } />
1323 ) ) }
You can’t perform that action at this time.
0 commit comments