Skip to content

Commit

Permalink
Replace React Native icon with react for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent (Wen Yu) Ge committed Apr 8, 2024
1 parent 39f47ad commit 7d2e819
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/routes/docs/quick-starts/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
quickStarts: [
{
title: 'React Native',
icon: 'icon-react-native',
icon: 'icon-react',
image: '/images/blog/placeholder.png',
href: 'react-native'
},
Expand Down
1 change: 1 addition & 0 deletions src/routes/docs/tutorials/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/routes/docs/tutorials/+page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/routes/docs/tutorials/react-native/+page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
};

0 comments on commit 7d2e819

Please sign in to comment.