Skip to content

Commit 315cd00

Browse files
committed
move /terms, /privacy-policy to framer, remove /mission
1 parent a9c30e9 commit 315cd00

File tree

20 files changed

+31
-1138
lines changed

20 files changed

+31
-1138
lines changed

apps/dashboard/framer-rewrites.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,7 @@ module.exports = [
2828
// -- TPP --
2929
"/trusted-partner-program",
3030
"/trusted-partner-program/:partner_slug",
31+
// -- legal --
32+
"/terms",
33+
"/privacy-policy",
3134
];

apps/dashboard/redirects.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,24 @@ async function redirects() {
301301
destination: "/community/ambassadors",
302302
permanent: false,
303303
},
304+
// redirect `/tos` to `/terms`
305+
{
306+
source: "/tos",
307+
destination: "/terms",
308+
permanent: false,
309+
},
310+
// redirect `/privacy` to `/privacy-policy`
311+
{
312+
source: "/privacy",
313+
destination: "/privacy-policy",
314+
permanent: false,
315+
},
316+
// redirect `/mission` to `/home`
317+
{
318+
source: "/mission",
319+
destination: "/home",
320+
permanent: false,
321+
},
304322
...legacyDashboardToTeamRedirects,
305323
];
306324
}

apps/dashboard/src/@/components/blocks/app-footer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@ export function AppFooter(props: AppFooterProps) {
107107
</Link>
108108
<Link
109109
className="px-[10px] py-[6px] text-muted-foreground text-sm hover:underline"
110-
href="https://thirdweb.com/privacy"
110+
href="https://thirdweb.com/privacy-policy"
111111
target="_blank"
112112
>
113113
Privacy Policy
114114
</Link>
115115
<Link
116116
className="px-[10px] py-[6px] text-muted-foreground text-sm hover:underline"
117-
href="https://thirdweb.com/tos"
117+
href="https://thirdweb.com/terms"
118118
target="_blank"
119119
>
120120
Terms of Service

apps/dashboard/src/@3rdweb-sdk/react/components/connect-wallet/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ export const CustomConnectWallet = (props: {
163163
theme={getSDKTheme(t)}
164164
client={thirdwebClient}
165165
connectModal={{
166-
privacyPolicyUrl: "/privacy",
167-
termsOfServiceUrl: "/tos",
166+
privacyPolicyUrl: "/privacy-policy",
167+
termsOfServiceUrl: "/terms",
168168
showThirdwebBranding: false,
169169
welcomeScreen: () => <ConnectWalletWelcomeScreen theme={t} />,
170170
}}
@@ -308,8 +308,8 @@ export function useCustomConnectModal() {
308308
url: "https://thirdweb.com",
309309
},
310310
chain: options?.chain,
311-
privacyPolicyUrl: "/privacy",
312-
termsOfServiceUrl: "/tos",
311+
privacyPolicyUrl: "/privacy-policy",
312+
termsOfServiceUrl: "/terms",
313313
showThirdwebBranding: false,
314314
welcomeScreen: () => (
315315
<ConnectWalletWelcomeScreen

apps/dashboard/src/app/login/LoginPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ function CustomConnectEmbed(props: {
216216
modalSize="wide"
217217
theme={getSDKTheme(theme === "light" ? "light" : "dark")}
218218
className="shadow-lg"
219-
privacyPolicyUrl="/privacy"
220-
termsOfServiceUrl="/tos"
219+
privacyPolicyUrl="/privacy-policy"
220+
termsOfServiceUrl="/terms"
221221
/>
222222
);
223223
}

apps/dashboard/src/components/footer/footerLinks.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ export const COMPANY: FooterLinkInfo[] = [
8282
{
8383
name: "Privacy Policy",
8484
label: "privacy",
85-
link: "/privacy",
85+
link: "/privacy-policy",
8686
},
8787
{
8888
name: "Terms of Service",
8989
label: "terms",
90-
link: "/tos",
90+
link: "/terms",
9191
},
9292
];

apps/dashboard/src/components/landing-pages/faq.tsx

Lines changed: 0 additions & 82 deletions
This file was deleted.

apps/dashboard/src/components/mission/DesireSection.tsx

Lines changed: 0 additions & 55 deletions
This file was deleted.

apps/dashboard/src/components/mission/HeroSection.tsx

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)