Skip to content

Commit

Permalink
added
Browse files Browse the repository at this point in the history
  • Loading branch information
NabeelAyubee committed Oct 4, 2024
1 parent d0dbf91 commit f90e62b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,32 @@ const QuickSetupConfigComponent = ({ onSelect, formData, control, formState, ...
{
id: 1,
title: "SANDBOX_GUIDE_1",
content: "SANDBOX_CONTENT_1",
content: null,
actions: [
{
label: "SANDBOX_GUIDE_1_LABEL_1",
label: null,
description: "SANDBOX_GUIDE_1_DESC_1",
},
{
label: "SANDBOX_GUIDE_1_LABEL_2",
label: null,
description: "SANDBOX_GUIDE_1_DESC_2",
},
{
label: "SANDBOX_GUIDE_1_LABEL_3",
label: null,
description: "SANDBOX_GUIDE_1_DESC_3",
},
{
label: null,
description: "SANDBOX_GUIDE_1_DESC_4",
},
{
label: null,
description: "SANDBOX_GUIDE_1_DESC_5",
},
{
label: null,
description: "SANDBOX_GUIDE_1_DESC_6",
},
],
},
{
Expand Down Expand Up @@ -123,11 +135,11 @@ const QuickSetupConfigComponent = ({ onSelect, formData, control, formState, ...
label: "SANDBOX_GUIDE_2_LABEL_6",
description: "SANDBOX_GUIDE_2_DESC_6",
},
{
label: "SANDBOX_GUIDE_2_LABEL_7",
description: "SANDBOX_GUIDE_2_DESC_7",
},
],
style: {
backgroundColor: "#fce4ec",
color: "#880e4f",
},
},
{
id: 3,
Expand All @@ -147,10 +159,6 @@ const QuickSetupConfigComponent = ({ onSelect, formData, control, formState, ...
description: "SANDBOX_GUIDE_3_DESC_3",
},
],
style: {
backgroundColor: "#fff9c4",
color: "#f57f17",
},
},
{
id: 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ const CardC = ({ type, title, content, actions, style }) => {
<div>
{/* <div style={{ border: "1px solid #ccc", borderRadius: "8px", padding: "16px", margin: "16px", ...style }}> */}
<CardSectionHeader>{title}</CardSectionHeader>
<CardSectionSubText>{content}</CardSectionSubText>
<div>
<CardSectionSubText style={{ marginTop: "1rem" }}>{content}</CardSectionSubText>
<div style={{ marginTop: "1rem" }}>
{actions && (
<ListTag>
{actions.map((action, index) => (
<li key={index} style={{ listStyleType: ListTag === "ul" ? "disc" : "auto", margin: "8px 0" }}>
<strong>{action.label}:</strong> {action.description}
{action?.label ? <strong>{action?.label}:</strong> : null} {action.description}
</li>
))}
</ListTag>
Expand All @@ -29,9 +29,9 @@ const CardC = ({ type, title, content, actions, style }) => {

const FAQ = ({ key, title, content, faqs }) => {
return (
<div>
<div style={{ width: "100%" }}>
<CardSectionHeader>{title}</CardSectionHeader>
<CardSectionSubText>{content}</CardSectionSubText>
<CardSectionSubText style={{ marginTop: "1rem" }}>{content}</CardSectionSubText>
<div style={{ width: "100%" }}>
{faqs.map((faq, i) => (
<FaqComponent key={"faq_" + i} question={faq.question} answer={faq.answer} lastIndex={i === faqs?.length - 1} />
Expand Down Expand Up @@ -79,7 +79,7 @@ const QuickSetup = ({ cardConfig }) => {
actions={config.actions}
style={config.style}
/>
{index !== cardConfig?.length - 1 && <BreakLine style={{ width: "100%" }} />}
{index !== cardConfig?.length - 1 && <BreakLine style={{ width: "100%", border: "1px solid #d6d5d4" }} />}
</React.Fragment>
);
})}
Expand Down

0 comments on commit f90e62b

Please sign in to comment.