From 7d2e819299bbdffb15048db288f30d059002af8a Mon Sep 17 00:00:00 2001 From: "Vincent (Wen Yu) Ge" Date: Mon, 8 Apr 2024 10:27:51 -0400 Subject: [PATCH] Replace React Native icon with react for now --- src/routes/docs/quick-starts/+page.svelte | 2 +- src/routes/docs/tutorials/+page.svelte | 1 + src/routes/docs/tutorials/+page.ts | 2 +- src/routes/docs/tutorials/react-native/+page.ts | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/routes/docs/quick-starts/+page.svelte b/src/routes/docs/quick-starts/+page.svelte index e694ed2933..f538bed590 100644 --- a/src/routes/docs/quick-starts/+page.svelte +++ b/src/routes/docs/quick-starts/+page.svelte @@ -74,7 +74,7 @@ quickStarts: [ { title: 'React Native', - icon: 'icon-react-native', + icon: 'icon-react', image: '/images/blog/placeholder.png', href: 'react-native' }, diff --git a/src/routes/docs/tutorials/+page.svelte b/src/routes/docs/tutorials/+page.svelte index 932b5ad3cd..4b8a5263d3 100644 --- a/src/routes/docs/tutorials/+page.svelte +++ b/src/routes/docs/tutorials/+page.svelte @@ -12,6 +12,7 @@ type MappedTutorial = (typeof data.tutorials)[number]; const iconMap: Record = { + 'react native': 'icon-react', react: 'icon-react', vue: 'web-icon-vue', angular: 'icon-angular', diff --git a/src/routes/docs/tutorials/+page.ts b/src/routes/docs/tutorials/+page.ts index 415c4cd37b..525b12a2d2 100644 --- a/src/routes/docs/tutorials/+page.ts +++ b/src/routes/docs/tutorials/+page.ts @@ -27,7 +27,7 @@ export async function load() { .replace('/+page.markdoc', '') .replace('/step-1', ''); const tutorialName = slug.slice(slug.lastIndexOf('/') + 1); - + return { title: frontmatter.title, framework: frontmatter.framework, diff --git a/src/routes/docs/tutorials/react-native/+page.ts b/src/routes/docs/tutorials/react-native/+page.ts index 541bc7abce..97119a2042 100644 --- a/src/routes/docs/tutorials/react-native/+page.ts +++ b/src/routes/docs/tutorials/react-native/+page.ts @@ -2,5 +2,5 @@ import { redirect } from '@sveltejs/kit'; import type { PageLoad } from './$types'; export const load: PageLoad = async () => { - redirect(303, '/docs/tutorials/react/step-1'); + redirect(303, '/docs/tutorials/react-native/step-1'); };