fix(BOOK-436): Added new section component and deprecated the other
Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import SectionContainer from "@/components/Section/Container"
|
||||
import SectionHeader from "@/components/Section/Header"
|
||||
import { Section } from "@/components/Section"
|
||||
import SectionHeader from "@/components/Section/Header/Deprecated"
|
||||
import SectionLink from "@/components/Section/Link"
|
||||
|
||||
import type { DynamicContentProps } from "@/types/components/blocks/dynamicContent"
|
||||
@@ -14,7 +14,7 @@ export default function SectionWrapper({
|
||||
dynamic_content.title
|
||||
)
|
||||
return (
|
||||
<SectionContainer>
|
||||
<Section>
|
||||
{displayHeader ? (
|
||||
<SectionHeader
|
||||
link={dynamic_content.link}
|
||||
@@ -28,6 +28,6 @@ export default function SectionWrapper({
|
||||
{dynamic_content.link ? (
|
||||
<SectionLink link={dynamic_content.link} variant="mobile" />
|
||||
) : null}
|
||||
</SectionContainer>
|
||||
</Section>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user