Replace React Native icon with react for now

This commit is contained in:
Vincent (Wen Yu) Ge
2024-04-08 10:27:51 -04:00
parent 39f47ad8e3
commit 7d2e819299
4 changed files with 4 additions and 3 deletions

View File

@@ -74,7 +74,7 @@
quickStarts: [ quickStarts: [
{ {
title: 'React Native', title: 'React Native',
icon: 'icon-react-native', icon: 'icon-react',
image: '/images/blog/placeholder.png', image: '/images/blog/placeholder.png',
href: 'react-native' href: 'react-native'
}, },

View File

@@ -12,6 +12,7 @@
type MappedTutorial = (typeof data.tutorials)[number]; type MappedTutorial = (typeof data.tutorials)[number];
const iconMap: Record<string, string> = { const iconMap: Record<string, string> = {
'react native': 'icon-react',
react: 'icon-react', react: 'icon-react',
vue: 'web-icon-vue', vue: 'web-icon-vue',
angular: 'icon-angular', angular: 'icon-angular',

View File

@@ -27,7 +27,7 @@ export async function load() {
.replace('/+page.markdoc', '') .replace('/+page.markdoc', '')
.replace('/step-1', ''); .replace('/step-1', '');
const tutorialName = slug.slice(slug.lastIndexOf('/') + 1); const tutorialName = slug.slice(slug.lastIndexOf('/') + 1);
return { return {
title: frontmatter.title, title: frontmatter.title,
framework: frontmatter.framework, framework: frontmatter.framework,

View File

@@ -2,5 +2,5 @@ import { redirect } from '@sveltejs/kit';
import type { PageLoad } from './$types'; import type { PageLoad } from './$types';
export const load: PageLoad = async () => { export const load: PageLoad = async () => {
redirect(303, '/docs/tutorials/react/step-1'); redirect(303, '/docs/tutorials/react-native/step-1');
}; };