From 3caa10fe8f1b7009e409b7d20abd67f2954f4b85 Mon Sep 17 00:00:00 2001 From: Thuong_e Date: Fri, 21 Apr 2023 15:19:50 +0700 Subject: [PATCH] fix image problemsSection --- .../{image19.png => icon-user-behavior.png} | Bin src/i18n/en/healthCare/problemsSection.json | 6 +-- src/shared/components/Header.tsx | 42 +++++++++++------- .../components/healthcare/ApproachSection.tsx | 17 ++++--- .../components/healthcare/Competitions.tsx | 7 ++- .../components/healthcare/CustomerInsight.tsx | 2 +- .../components/healthcare/FirstSection.tsx | 11 +++-- .../components/healthcare/ProblemsSection.tsx | 11 +++-- .../healthcare/SolutionsOfProduct​.tsx | 2 +- .../providers/RouterProviderComponent.tsx | 2 +- 10 files changed, 60 insertions(+), 40 deletions(-) rename src/assets/images/{image19.png => icon-user-behavior.png} (100%) diff --git a/src/assets/images/image19.png b/src/assets/images/icon-user-behavior.png similarity index 100% rename from src/assets/images/image19.png rename to src/assets/images/icon-user-behavior.png diff --git a/src/i18n/en/healthCare/problemsSection.json b/src/i18n/en/healthCare/problemsSection.json index c3ae122..c657489 100644 --- a/src/i18n/en/healthCare/problemsSection.json +++ b/src/i18n/en/healthCare/problemsSection.json @@ -3,19 +3,19 @@ "data": [ { "id": 1, - "src": "../../../../public/images/image19.png", + "src": "/src/assets/images/icon-user-behavior.png", "title": "User behavior", "content": "Satisfying the habit of searching for any unusual signs related to the user's health" }, { "id": 2, - "src": "../../../../public/images/image20.png", + "src": "/src/assets/images/image20.png", "title": "User Information​", "content": "Providing accurate and easy-to-understand information for users​" }, { "id": 3, - "src": "../../../../public/images/image21.png", + "src": "/src/assets/images/image21.png", "title": "Interaction", "content": "Providing a good user experience with high interactivity, encourage users to provide more valuable information about their illness​" } diff --git a/src/shared/components/Header.tsx b/src/shared/components/Header.tsx index 0d9d01e..9bff24b 100644 --- a/src/shared/components/Header.tsx +++ b/src/shared/components/Header.tsx @@ -6,7 +6,8 @@ import { BsNewspaper, BsGithub } from "react-icons/bs"; import Whitepaper from "../../assets/Whitepaper.pdf"; import { MdLanguage } from "react-icons/md"; import { locales, resources } from "../../i18n/i18n"; -import { HashLink as Link } from "react-router-hash-link"; +import { HashLink } from "react-router-hash-link"; +import { Link } from "react-router-dom"; type Props = {}; @@ -126,7 +127,7 @@ const Header = (props: Props) => {