mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-09 04:22:13 +00:00
Replace React Native icon with react for now
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user