Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion src/pages/signup/terms-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import LoadingSpinner from '../../components/common/LoadingSpinner';
const NOTION_URL_BY_CODE: Record<string, string> = {
SERVICE: 'https://app.notion.com/p/368eb332282b80c39c48d3f7ab31558d?source=copy_link',
PRIVACY: 'https://app.notion.com/p/391eb332282b806d90c0eff9827a7d5f?source=copy_link',
AI: 'https://app.notion.com/p/AI-392eb332282b809086f0d3f3915ec6c7?source=copy_link',
AI_SERVICE: 'https://app.notion.com/p/AI-392eb332282b809086f0d3f3915ec6c7?source=copy_link',
MARKETING: 'https://app.notion.com/p/39aeb332282b8012bd2cca451c75d311?source=copy_link',
};

Expand Down Expand Up @@ -65,6 +65,28 @@ const TermsPage = () => {

const termsData = await getTerms();

// AI 서비스 약관과 마케팅 약관 순서 변경
const aiIndex = termsData.findIndex(
(term) => term.code === 'AI_SERVICE',
);

const marketingIndex = termsData.findIndex(
(term) => term.code === 'MARKETING',
);

if (
aiIndex !== -1 &&
marketingIndex !== -1
) {
[
termsData[aiIndex],
termsData[marketingIndex],
] = [
termsData[marketingIndex],
termsData[aiIndex],
];
}

setTerms(termsData);

const initialAgreements = termsData.reduce<Record<number, boolean>>((acc, term) => {
Expand Down
Loading