Skip to content

Commit c3284ea

Browse files
committed
feat: Add terms of service and privacy policy pages
1 parent 1720cc0 commit c3284ea

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/pages/PrivacyPolicy.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ import FadeInOnView from '@/components/FadeComponent/FadeInOnView';
77
import Footer from '@/components/Home/Footer';
88

99
// Define types for the translation structure
10-
interface ContentItem {
10+
type ContentItem = {
1111
point?: string;
1212
text: string;
13-
}
13+
};
1414

15-
interface Section {
15+
type Section = {
1616
title: string;
1717
content: (string | ContentItem)[];
18-
}
18+
};
1919

20-
interface PrivacyPolicyTranslation {
20+
type PrivacyPolicyTranslation = {
2121
[sectionKey: string]: Section; // Dynamic section keys with a Section value
22-
}
22+
};
2323

2424
/**
2525
* Privacy Policy component that displays data collection, usage, and user rights.

src/pages/TermsOfService.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ import FadeInOnView from '@/components/FadeComponent/FadeInOnView';
77
import Footer from '@/components/Home/Footer';
88

99
// Define types for the translation structure
10-
interface ContentItem {
10+
type ContentItem = {
1111
point?: string;
1212
text: string;
13-
}
13+
};
1414

15-
interface Section {
15+
type Section = {
1616
title: string;
1717
content: (string | ContentItem)[];
18-
}
18+
};
1919

20-
interface TermsOfServiceTranslation {
20+
type TermsOfServiceTranslation = {
2121
[sectionKey: string]: Section; // Dynamic section keys with a Section value
22-
}
22+
};
2323

2424
/**
2525
* Terms of Service component that displays platform policies and guidelines.

0 commit comments

Comments
 (0)