Skip to content

Commit

Permalink
[INJIWEB-1025] : coming soon toast for quick tip
Browse files Browse the repository at this point in the history
Signed-off-by: Vijay <[email protected]>
  • Loading branch information
vijay151096 committed Nov 4, 2024
1 parent 06681c8 commit 3060bd2
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 2 deletions.
1 change: 0 additions & 1 deletion inji-web/src/components/PageTemplate/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {GiHamburgerMenu} from "react-icons/gi";
import OutsideClickHandler from 'react-outside-click-handler';
import { RootState } from "../../types/redux";
import { useSelector } from "react-redux";
import { isRTL } from "../../utils/i18n";
export const Header: React.FC = () => {

const language = useSelector((state: RootState) => state.common.language);
Expand Down
1 change: 1 addition & 0 deletions inji-web/src/locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
},
"QuickTip": {
"heading": "نصائح سريعة لتنزيل بياناتك فورًا",
"toastText":"قريباً",
"buttontext": "انقر هنا"
}
},
Expand Down
1 change: 1 addition & 0 deletions inji-web/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
},
"QuickTip":{
"heading":"Quick Tips for Instantly Downloading Your Credentials",
"toastText":"Coming soon",
"buttontext":"Click Here"
}
},
Expand Down
1 change: 1 addition & 0 deletions inji-web/src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
},
"QuickTip": {
"heading": "Conseils rapides pour télécharger instantanément vos identifiants",
"toastText":"à venir",
"buttontext": "Cliquez ici"
}
},
Expand Down
1 change: 1 addition & 0 deletions inji-web/src/locales/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
},
"QuickTip": {
"heading": "अपने क्रेडेंशियल्स को तुरंत डाउनलोड करने के लिए त्वरित सुझाव",
"toastText":"जल्द आ रहा है",
"buttontext": "यहां क्लिक करें"
}
},
Expand Down
1 change: 1 addition & 0 deletions inji-web/src/locales/kn.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
},
"QuickTip": {
"heading": "ನಿಮ್ಮ ಕ್ರೆಡೆನ್ಶಿಯಲ್ಗಳನ್ನು ತಕ್ಷಣ ಡೌನ್‌ಲೋಡ್ ಮಾಡಲು ತ್ವರಿತ ಸಲಹೆಗಳು",
"toastText":"ಶೀಘ್ರದಲ್ಲೇ ಬರಲಿದೆ",
"buttontext": "ಇಲ್ಲಿ ಕ್ಲಿಕ್ ಮಾಡಿ"
}
},
Expand Down
1 change: 1 addition & 0 deletions inji-web/src/locales/ta.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
},
"QuickTip": {
"heading": "உங்கள் சான்றுகளை உடனடியாக பதிவிறக்குவதற்கான விரைவான குறிப்புகள்",
"toastText":"விரைவில்",
"buttontext": "இங்கே கிளிக் செய்யவும்"
}
},
Expand Down
5 changes: 4 additions & 1 deletion inji-web/src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ import {useNavigate} from "react-router-dom";
import {HomeBanner} from "../components/Home/HomeBanner";
import {HomeFeatures} from "../components/Home/HomeFeatures";
import {HomeQuickTip} from "../components/Home/HomeQuickTip";
import {toast} from "react-toastify";
import {useTranslation} from "react-i18next";

export const HomePage:React.FC = () => {
const navigate = useNavigate();
const {t} = useTranslation("HomePage");
return <div className={"pb-20 flex flex-col gap-y-4 "}>
<HomeBanner onClick={() => navigate("/issuers")} />
<HomeFeatures/>
<HomeQuickTip onClick={() => navigate("/issuers")} />
<HomeQuickTip onClick={() => toast.warning(t("QuickTip.toastText"))} />
</div>
}

0 comments on commit 3060bd2

Please sign in to comment.