mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-02 17:00:28 +08:00
updated paths and names
This commit is contained in:
+1
-1
@@ -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 (
|
||||
+1
-1
@@ -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 (
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user