remove: remove link CollapseCommon

This commit is contained in:
unknown
2021-09-08 21:34:36 +07:00
parent d79e971bed
commit 69d5e64dea
2 changed files with 2 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
import CollapseChild from './CollapseChild/CollapseChild' import CollapseChild from './CollapseChild/CollapseChild'
interface CollapseCommonProps{ interface CollapseCommonProps{
data: {title: string, content: string, link: string}[], data: {title: string, content: string}[],
} }
const CollapseCommon = ({data}: CollapseCommonProps) => { const CollapseCommon = ({data}: CollapseCommonProps) => {
@@ -9,7 +9,7 @@ const CollapseCommon = ({data}: CollapseCommonProps) => {
<section> <section>
{ {
data.map((item,index) => data.map((item,index) =>
<CollapseChild key={`${item.title}-${index}`} title={item.title} content={item.content} link={item.link} /> <CollapseChild key={`${item.title}-${index}`} title={item.title} content={item.content} />
) )
} }
</section> </section>

View File

@@ -1,6 +1,5 @@
import { CollapseCommon, DateTime, HeadingCommon } from 'src/components/common' import { CollapseCommon, DateTime, HeadingCommon } from 'src/components/common'
import s from './DeliveryAndPolicyContent.module.scss' import s from './DeliveryAndPolicyContent.module.scss'
import { ROUTE } from 'src/utils/constanst.utils'
interface DeliveryAndPolicyContentProps{ interface DeliveryAndPolicyContentProps{
title?: string, title?: string,
@@ -22,7 +21,6 @@ const DELIVERYANDPOLICY_DATA = [
Some people arent into raw broccoli, but I love it! I always go for the raw broccoli on those vegetable platters that seem to be at every potluck/party you go to. Some people arent into raw broccoli, but I love it! I always go for the raw broccoli on those vegetable platters that seem to be at every potluck/party you go to.
This is a simple broccoli salad: you have the bulk of it, raw broccoli; crunchy red onions for a bit of acidity and raw crunch, craisins for sweetness, almonds for a nutty counter point; and a sweet and tangy soy-rice vinegar-sesame dressing.`, This is a simple broccoli salad: you have the bulk of it, raw broccoli; crunchy red onions for a bit of acidity and raw crunch, craisins for sweetness, almonds for a nutty counter point; and a sweet and tangy soy-rice vinegar-sesame dressing.`,
link: `${ROUTE.PRIVACY_POLICY}/title`
}, },
{ {
title: "This is a subtitle", title: "This is a subtitle",
@@ -31,7 +29,6 @@ const DELIVERYANDPOLICY_DATA = [
Some people arent into raw broccoli, but I love it! I always go for the raw broccoli on those vegetable platters that seem to be at every potluck/party you go to. Some people arent into raw broccoli, but I love it! I always go for the raw broccoli on those vegetable platters that seem to be at every potluck/party you go to.
This is a simple broccoli salad: you have the bulk of it, raw broccoli; crunchy red onions for a bit of acidity and raw crunch, craisins for sweetness, almonds for a nutty counter point; and a sweet and tangy soy-rice vinegar-sesame dressing.`, This is a simple broccoli salad: you have the bulk of it, raw broccoli; crunchy red onions for a bit of acidity and raw crunch, craisins for sweetness, almonds for a nutty counter point; and a sweet and tangy soy-rice vinegar-sesame dressing.`,
link: `${ROUTE.PRIVACY_POLICY}/title`
}, },
{ {
title: "This is a subtitle", title: "This is a subtitle",
@@ -40,7 +37,6 @@ const DELIVERYANDPOLICY_DATA = [
Some people arent into raw broccoli, but I love it! I always go for the raw broccoli on those vegetable platters that seem to be at every potluck/party you go to. Some people arent into raw broccoli, but I love it! I always go for the raw broccoli on those vegetable platters that seem to be at every potluck/party you go to.
This is a simple broccoli salad: you have the bulk of it, raw broccoli; crunchy red onions for a bit of acidity and raw crunch, craisins for sweetness, almonds for a nutty counter point; and a sweet and tangy soy-rice vinegar-sesame dressing.`, This is a simple broccoli salad: you have the bulk of it, raw broccoli; crunchy red onions for a bit of acidity and raw crunch, craisins for sweetness, almonds for a nutty counter point; and a sweet and tangy soy-rice vinegar-sesame dressing.`,
link: `${ROUTE.PRIVACY_POLICY}/title`
}, },
{ {
title: "This is a subtitle", title: "This is a subtitle",
@@ -49,7 +45,6 @@ const DELIVERYANDPOLICY_DATA = [
Some people arent into raw broccoli, but I love it! I always go for the raw broccoli on those vegetable platters that seem to be at every potluck/party you go to. Some people arent into raw broccoli, but I love it! I always go for the raw broccoli on those vegetable platters that seem to be at every potluck/party you go to.
This is a simple broccoli salad: you have the bulk of it, raw broccoli; crunchy red onions for a bit of acidity and raw crunch, craisins for sweetness, almonds for a nutty counter point; and a sweet and tangy soy-rice vinegar-sesame dressing.`, This is a simple broccoli salad: you have the bulk of it, raw broccoli; crunchy red onions for a bit of acidity and raw crunch, craisins for sweetness, almonds for a nutty counter point; and a sweet and tangy soy-rice vinegar-sesame dressing.`,
link: `${ROUTE.PRIVACY_POLICY}/title`
}, },
{ {
title: "This is a subtitle", title: "This is a subtitle",
@@ -58,7 +53,6 @@ const DELIVERYANDPOLICY_DATA = [
Some people arent into raw broccoli, but I love it! I always go for the raw broccoli on those vegetable platters that seem to be at every potluck/party you go to. Some people arent into raw broccoli, but I love it! I always go for the raw broccoli on those vegetable platters that seem to be at every potluck/party you go to.
This is a simple broccoli salad: you have the bulk of it, raw broccoli; crunchy red onions for a bit of acidity and raw crunch, craisins for sweetness, almonds for a nutty counter point; and a sweet and tangy soy-rice vinegar-sesame dressing.`, This is a simple broccoli salad: you have the bulk of it, raw broccoli; crunchy red onions for a bit of acidity and raw crunch, craisins for sweetness, almonds for a nutty counter point; and a sweet and tangy soy-rice vinegar-sesame dressing.`,
link: `${ROUTE.PRIVACY_POLICY}/title`
}, },
] ]