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

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

View File

@@ -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,

View File

@@ -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');
};