diff --git a/src/assets/images/icons/close-btn-white.svg b/src/assets/images/icons/close-btn.svg similarity index 93% rename from src/assets/images/icons/close-btn-white.svg rename to src/assets/images/icons/close-btn.svg index ff633ba..04b9f73 100644 --- a/src/assets/images/icons/close-btn-white.svg +++ b/src/assets/images/icons/close-btn.svg @@ -1,7 +1,7 @@ - + diff --git a/src/routes/index.tsx b/src/routes/index.tsx index ab4b42b..1f9418d 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -8,16 +8,13 @@ import SurveyScreen from 'screens/Survey'; import ProtectedRoute from './ProtectedRoute'; +export const questionPath = 'questions'; + export const paths = { root: '/', signIn: '/sign-in', survey: '/surveys/:id', - question: '/surveys/:id/questions', -}; - -export const questionPath = (): string => { - const questionPaths = paths.question.split('/'); - return questionPaths[questionPaths.length - 1]; + question: `/surveys/:id/${questionPath}`, }; const routes: RouteObject[] = [ diff --git a/src/screens/Question/index.tsx b/src/screens/Question/index.tsx index 489e13f..cd5d7bb 100644 --- a/src/screens/Question/index.tsx +++ b/src/screens/Question/index.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { ReactComponent as ArrowRight } from 'assets/images/icons/arrow-right.svg'; -import { ReactComponent as CloseButton } from 'assets/images/icons/close-btn-white.svg'; +import { ReactComponent as CloseButton } from 'assets/images/icons/close-btn.svg'; import AppSlider from 'components/AppSlider'; import MainView from 'components/MainView'; @@ -16,7 +16,7 @@ const QuestionScreen = (): JSX.Element => { return (
-
diff --git a/src/screens/Survey/index.tsx b/src/screens/Survey/index.tsx index 4396992..b85d463 100644 --- a/src/screens/Survey/index.tsx +++ b/src/screens/Survey/index.tsx @@ -72,7 +72,7 @@ const SurveyScreen = (): JSX.Element => { {survey?.description}

- + Start Survey