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