From 1284e9d54344baa73544d33e553e61570638831d Mon Sep 17 00:00:00 2001 From: Khushal Agarwal Date: Tue, 20 Feb 2024 16:08:13 +0530 Subject: [PATCH] fix: folder mapping for react native sdk (cherry picked from commit f59cd35179642819ec64069ddf8b70a74e84d9a5) --- constants.js | 2 +- src/pages/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/constants.js b/constants.js index ef679fb..12bc597 100644 --- a/constants.js +++ b/constants.js @@ -3,7 +3,7 @@ const folderMapping = { flutter: "Flutter", ios: "iOS", react: "React", - reactnative: "React Native", + reactnative: "React-Native", angular: "Angular", api: "API", javascript: "JavaScript", diff --git a/src/pages/index.js b/src/pages/index.js index c14891e..6e29f5d 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -12,7 +12,7 @@ import { folderMapping } from "../../constants" import styles from "./styles.module.css" const Feature = ({ title }) => { - const platform = `${title.toLowerCase().replace(" ", "")}` + const platform = `${title.toLowerCase().replace("-", "")}` return (