updated paths and names

This commit is contained in:
rsandb
2023-01-12 20:28:24 -06:00
parent e6d8ee7d3e
commit 7bb5768dc0
4 changed files with 14 additions and 12 deletions
@@ -11,7 +11,7 @@ export interface ChapterProps {
children: React.ReactNode;
}
export const ChapterCard = ({ chapter, children }: ChapterProps) => {
export const PolicyChapterCard = ({ chapter, children }: ChapterProps) => {
const backgroundColor = useColorModeValue("gray.100", "gray.800");
return (
@@ -10,7 +10,7 @@ export interface SectionProps {
section: SectionInfo;
}
export const SectionCard = ({ section }: SectionProps) => {
export const PolicySectionCard = ({ section }: SectionProps) => {
const backgroundColor = useColorModeValue("gray.200", "gray.700");
return (
+5 -5
View File
@@ -1,8 +1,8 @@
import { Box, Heading, Link, Stack, Text, useColorModeValue } from "@chakra-ui/react";
import Head from "next/head";
import { getTransparentHeaderLayout } from "src/components/Layout";
import { ChapterCard } from "src/components/TOS/ChapterCard";
import { SectionCard } from "src/components/TOS/SectionCard";
import { PolicyChapterCard } from "src/components/PolicyCards/PolicyChapterCard";
import { PolicySectionCard } from "src/components/PolicyCards/PolicySectionCard";
const PrivacyPolicy = () => {
const backgroundColor = useColorModeValue("gray.100", "gray.800");
@@ -193,13 +193,13 @@ const PrivacyPolicy = () => {
<Stack spacing="8">
{PrivacyPolicyData.map((chapter, chapterIndex) => (
<ChapterCard key={chapterIndex} chapter={chapter}>
<PolicyChapterCard key={chapterIndex} chapter={chapter}>
{chapter.sections && chapter.sections.length
? chapter.sections.map((section, sectionIndex) => (
<SectionCard key={sectionIndex} section={section} />
<PolicySectionCard key={sectionIndex} section={section} />
))
: ""}
</ChapterCard>
</PolicyChapterCard>
))}
</Stack>
+7 -5
View File
@@ -1,8 +1,8 @@
import { Box, Heading, Stack } from "@chakra-ui/react";
import Head from "next/head";
import { getTransparentHeaderLayout } from "src/components/Layout";
import { ChapterCard } from "src/components/TOS/ChapterCard";
import { SectionCard } from "src/components/TOS/SectionCard";
import { PolicyChapterCard } from "src/components/PolicyCards/PolicyChapterCard";
import { PolicySectionCard } from "src/components/PolicyCards/PolicySectionCard";
const TermsOfService = () => {
const TermsData = [
@@ -173,11 +173,13 @@ const TermsOfService = () => {
<Stack spacing="8">
{TermsData.map((chapter, chapterIndex) => (
<ChapterCard key={chapterIndex} chapter={chapter}>
<PolicyChapterCard key={chapterIndex} chapter={chapter}>
{chapter.sections && chapter.sections.length
? chapter.sections.map((section, sectionIndex) => <SectionCard key={sectionIndex} section={section} />)
? chapter.sections.map((section, sectionIndex) => (
<PolicySectionCard key={sectionIndex} section={section} />
))
: ""}
</ChapterCard>
</PolicyChapterCard>
))}
</Stack>
</Box>