From e2319135bee0414f9f89c6610cecc98bbf522da7 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Fri, 14 Jun 2024 22:36:52 +0100 Subject: [PATCH] added otp modal --- src/components/Home/Hero/Hero.tsx | 16 - src/components/Home/Hero/PersonalHero.tsx | 36 -- src/components/Home/Hero/hero.module.css | 19 - src/components/Home/Hero/index.ts | 4 - .../Home/Requirements/EligiblityBox.tsx | 22 - .../Home/Requirements/FeatureText.tsx | 45 -- .../Home/Requirements/Requirements.tsx | 15 - src/components/Home/Requirements/index.ts | 3 - src/components/Home/index.ts | 4 - .../InternetBanking/InternetBanking.tsx | 9 - src/components/InternetBanking/index.ts | 3 - src/components/TsAndCs/Main.tsx | 428 ------------------ src/components/TsAndCs/index.ts | 3 - src/components/auth/Login.tsx | 118 +++-- src/components/auth/OTP.tsx | 12 +- src/components/index.ts | 2 - src/components/modal/CustomModal.tsx | 15 + src/pages/BusinessBankingPage.tsx | 19 - src/pages/CooperateBankingPage.tsx | 19 - src/pages/HomePage.tsx | 21 - src/pages/InternetBankingPage.tsx | 10 - src/pages/PersonalBankingPage.tsx | 19 - src/pages/TermsAndConditionPage.tsx | 13 - src/pages/index.ts | 12 - src/router/Router.tsx | 4 - src/router/routes.tsx | 12 - src/utils/data.tsx | 6 +- 27 files changed, 97 insertions(+), 792 deletions(-) delete mode 100644 src/components/Home/Hero/Hero.tsx delete mode 100644 src/components/Home/Hero/PersonalHero.tsx delete mode 100644 src/components/Home/Hero/hero.module.css delete mode 100644 src/components/Home/Hero/index.ts delete mode 100644 src/components/Home/Requirements/EligiblityBox.tsx delete mode 100644 src/components/Home/Requirements/FeatureText.tsx delete mode 100644 src/components/Home/Requirements/Requirements.tsx delete mode 100644 src/components/Home/Requirements/index.ts delete mode 100644 src/components/Home/index.ts delete mode 100644 src/components/InternetBanking/InternetBanking.tsx delete mode 100644 src/components/InternetBanking/index.ts delete mode 100644 src/components/TsAndCs/Main.tsx delete mode 100644 src/components/TsAndCs/index.ts create mode 100644 src/components/modal/CustomModal.tsx delete mode 100644 src/pages/BusinessBankingPage.tsx delete mode 100644 src/pages/CooperateBankingPage.tsx delete mode 100644 src/pages/HomePage.tsx delete mode 100644 src/pages/InternetBankingPage.tsx delete mode 100644 src/pages/PersonalBankingPage.tsx delete mode 100644 src/pages/TermsAndConditionPage.tsx diff --git a/src/components/Home/Hero/Hero.tsx b/src/components/Home/Hero/Hero.tsx deleted file mode 100644 index 0fcd447..0000000 --- a/src/components/Home/Hero/Hero.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import styles from "./hero.module.css"; -const Hero = () => { - return ( -
-
-

- PREMIUM SALARY LOAN -

-
-
- ); -}; - -export default Hero; diff --git a/src/components/Home/Hero/PersonalHero.tsx b/src/components/Home/Hero/PersonalHero.tsx deleted file mode 100644 index 939eb40..0000000 --- a/src/components/Home/Hero/PersonalHero.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import React from "react"; -import styles from "./hero.module.css"; -import { Link } from "react-router-dom"; - -interface PersonalHeroProps { - heading?: string; - body?: string; - buttonLink?: string; - buttonText?: string; -} -const PersonalHero: React.FC = ({ - heading, - body, - buttonLink = "#", - buttonText, -}) => { - return ( -
-
-

- {heading} -

-

{body}

- - - -
-
- ); -}; - -export default PersonalHero; diff --git a/src/components/Home/Hero/hero.module.css b/src/components/Home/Hero/hero.module.css deleted file mode 100644 index 85f3757..0000000 --- a/src/components/Home/Hero/hero.module.css +++ /dev/null @@ -1,19 +0,0 @@ -.heroBg{ - background: url(../../../assets/images/hero-test.png) no-repeat; - background-size: cover; - background-position: center; - /* padding: 0.4rem 0; */ - display: flex; - align-items: center; - justify-content: center; -} - -.personalHeroBg{ - background: url(../../../assets/images/personal-page.jpg) no-repeat; - background-size: cover; - background-position: center; - /* padding: 0.4rem 0; */ - display: flex; - align-items: center; - justify-content: center; -} \ No newline at end of file diff --git a/src/components/Home/Hero/index.ts b/src/components/Home/Hero/index.ts deleted file mode 100644 index cfad588..0000000 --- a/src/components/Home/Hero/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -import Hero from "./Hero"; -import PersonalHero from "./PersonalHero"; - -export { Hero, PersonalHero }; diff --git a/src/components/Home/Requirements/EligiblityBox.tsx b/src/components/Home/Requirements/EligiblityBox.tsx deleted file mode 100644 index c01feb0..0000000 --- a/src/components/Home/Requirements/EligiblityBox.tsx +++ /dev/null @@ -1,22 +0,0 @@ -const EligiblityBox = () => { - return ( -
-

- REQUIRED ELIGIBILITY -

-
    -
  • - Have a verifiable source of income -
  • -
  • - You must have a valid BVN -
  • -
  • - Must have a salary or current bank account with FCMB -
  • -
-
- ); -}; - -export default EligiblityBox; diff --git a/src/components/Home/Requirements/FeatureText.tsx b/src/components/Home/Requirements/FeatureText.tsx deleted file mode 100644 index 0eaf8ae..0000000 --- a/src/components/Home/Requirements/FeatureText.tsx +++ /dev/null @@ -1,45 +0,0 @@ -import { Link } from "react-router-dom"; -import { RouteHandler } from "../../../router/routes"; - -const FeatureText = () => { - return ( -
-
-

- Premium Salary Plus loan provides confirmed staff of commercial - organizations more usable funds. The employee’s organization must have - been rated on Moody’s with a minimum BB- rating, employees interested - in the product must be eligible for minimum loan amount of 2,000,000. -

-

- Features -

-
    -
  • Minimum loan amount - N2 Million
  • -
  • Maximum tenure - 60 Months
  • -
  • Minimum tenure - 12 Months
  • -
  • Management fee - 1% flat upfront (0.5% for top-up loan)
  • -
  • - Collateral - Domiciliate of salary, terminal benefits and other - allowances -
  • -
  • Insurance fee - 0.9%*loan amount*tenure (in years)
  • -
-
- - *** Click here to apply - - - Terms and conditions apply - -
- ); -}; - -export default FeatureText; diff --git a/src/components/Home/Requirements/Requirements.tsx b/src/components/Home/Requirements/Requirements.tsx deleted file mode 100644 index 3031c26..0000000 --- a/src/components/Home/Requirements/Requirements.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import FeatureText from "./FeatureText"; -import EligiblityBox from "./EligiblityBox"; - -const Requirements = () => { - return ( -
-
- - -
-
- ); -}; - -export default Requirements; diff --git a/src/components/Home/Requirements/index.ts b/src/components/Home/Requirements/index.ts deleted file mode 100644 index 8e1dcac..0000000 --- a/src/components/Home/Requirements/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import Requirements from "./Requirements"; - -export { Requirements }; diff --git a/src/components/Home/index.ts b/src/components/Home/index.ts deleted file mode 100644 index e07aac8..0000000 --- a/src/components/Home/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { Hero, PersonalHero } from "./Hero"; -import { Requirements } from "./Requirements"; - -export {Hero, Requirements, PersonalHero} \ No newline at end of file diff --git a/src/components/InternetBanking/InternetBanking.tsx b/src/components/InternetBanking/InternetBanking.tsx deleted file mode 100644 index 80af7ad..0000000 --- a/src/components/InternetBanking/InternetBanking.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react' - -const InternetBanking: React.FC = () => { - return ( -
InternetBanking
- ) -} - -export default InternetBanking \ No newline at end of file diff --git a/src/components/InternetBanking/index.ts b/src/components/InternetBanking/index.ts deleted file mode 100644 index 73c7fa2..0000000 --- a/src/components/InternetBanking/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import InternetBanking from "./InternetBanking"; - -export { InternetBanking }; diff --git a/src/components/TsAndCs/Main.tsx b/src/components/TsAndCs/Main.tsx deleted file mode 100644 index d6e24a6..0000000 --- a/src/components/TsAndCs/Main.tsx +++ /dev/null @@ -1,428 +0,0 @@ -import React from "react"; - -const Main: React.FC = () => { - return ( -
-
-

- PRIVACY POLICY -

-

- - 1.Your Privacy is important to us. - -

-

- This privacy statement sets out the privacy policy of - fcmbgroupplc.com, which provides a portal, or gateway, to the - financial services offered by the First City Monument Bank Limited and - the other members of the FCMB Group Plc (Collectively, “FCMB”). -

-

- This policy explains how we collect, share, use, and protect - information when you visit or use this website and any other online - services, platforms, or products offered by FCMB or any of its banking - and non-banking affiliates and subsidiaries that link to or reference - this policy (collectively, our “services”). -

-

- 1.1 FCMB and You -

-

- First City Monument Bank Limited is a private limited liability - company registered in the Federal Republic of Nigeria under RC No. - 46713. Its head-office is at Primrose Tower, 17A Tinubu Street, Lagos - State, Nigeria. -

-

- FCMB Group Plc hosts the fcmbgroupplc.com website and provides - technical support, access and links to the Local Sites of First City - Group members. fcmbgroupplc.com does not offer financial services or - products. Financial services and products may only be obtained by - registering with a Local Site. The First City Group provides financial - products and services to a global clientele through its affiliated - companies and branches located in 36 states and the Federal Capital - Territory in Nigeria, and in the UK. Privacy and personal data - protection principles vary from one country to another. When you - access or link to a Local Site, please read the privacy statement - issued by the Local Site to determine the policies that apply to - information or data maintained by the Local Site. -

-

- - 2. Information we may collect about you - -

-

- 2.1 Your Personal Information -

-

- At FCMB, we strive to meet your needs and provide you with exceptional - services. In the course of consuming our services through various - channels, such as forms, phone calls, correspondence, service point - interfaces, and other available channels, we collect information that - you provide to us. This information may include, but is not limited - to, contact data, log/Technical information, Financial Data, Marketing - and Communications Data, identity verification details (this includes - Personally Identifiable Information (PII), otherwise known as Personal - Information or Personal Data, which includes email address, phone - number, contact address, limited financial information, location data, - device data etc.) and documents, services consumed or desired, mode of - consumption, preferences, location, general events, and instructions - and transactions relating to the services. -

-

- The lawful basis we rely on for processing your Personal Information - are: -

-
    -
  1. - Your Consent: Where you agree to us collecting your Personal - Information by using our Services. -
  2. -
  3. - We have a contractual obligation: Without your Personal Information, - we cannot provide our Services to you. -
  4. -
  5. - We have a legal obligation: To ensure we are fully compliant with - all applicable financial legislations such as Anti-Money Laundering - and Countering the Financing of Terrorism (AML/CFT) Laws, we must - collect and store your Personal Information. We protect against - fraud by checking your identity with your Personal Information. -
  6. -
-

- Additionally, to better serve your needs, we may utilize information - about you collected from third parties and service partners. It is - important to note that these third-party sources are not under the - control of FCMB, and we are not responsible for how they use the - information. -

-

- 2.2 Usage and other information -

-

- In addition to the personal information described above, we may - collect certain information about your use of our online services. For - example, we may capture the IP address of the device you use to - connect to the online service, the type of operating system and - browser you use, and information about the site you came from, the - parts of our online service you access, and the site you visit next. - FCMB or our third-party partners may also use cookies, web beacons or - other technologies to collect and store other information about your - visit to, or use of, our online services. In addition, we may later - associate the usage and other information we collect online with - personal information about you. -

-

- 2.3 FCMB Mobile -

-

- For the convenience of our FCMB customers, we provide access to our - products and services through our mobile applications and - mobile-optimized websites ("FCMB Mobile"). When you engage with us - through FCMB Mobile, we may collect certain information to enhance - your experience. This information may include unique device - identifiers for your mobile device, screen resolution, device - settings, location information, and analytical data regarding your - mobile device usage. Please note that we may request your permission - before collecting specific information, such as precise geo-location - data,- contact or image data and other personal identifiable - information through FCMB Mobile. Rest assured that any information - collected is handled with the utmost care and in accordance with our - privacy policy. -

-

- 2.4 Additional sources of information -

-

- We may also collect information about you from additional online and - offline sources including from co-branded partner sites or - commercially available third-party sources, such as credit reporting - agencies. We may combine this information with the personal and other - information we have collected about you under this Privacy Policy. -

-

- 2.5 Non-Personal Information -

-

- In order to achieve our goal of providing you with the best-in-class - service, we may also collect, store, use and transfer non-personal - information or anonymized data such as statistical or demographic - data. These may be collected or sourced during your visits to perform - certain tasks such as grant you access to some parts of our web site - or conduct research on your behaviour on our site in order to improve - our services. We will not disclose your information to any person - outside our organization except as described in this Privacy Policy. -

-

- - 3. Our Use of Information - -

-

- FCMB and/or subsidiaries may use or process the information discussed - above in a number of ways, such as to: -

-
    -
  1. Manage your preferences;
  2. -
  3. - Create and manage any accounts or transactions you may have with us, - verify your identity, provide our services, and respond to your - inquiries; -
  4. -
  5. - Process your applications and transactions (including authorization, - clearing, chargebacks and other related dispute resolution - activities); -
  6. -
  7. - Protect against and prevent fraud, unauthorized transactions, claims - and other liabilities as well as enhance the security of your - account or our online services; -
  8. -
  9. - Provide, administer and communicate with you about our products, - services, offers, programs and promotions as well as those of our - merchants and partners; -
  10. -
  11. - Evaluate your interest in employment and contact you regarding - possible employment with FCMB; -
  12. -
  13. - Evaluate and improve our business, including developing new products - and services; -
  14. -
  15. To target advertisements, newsletters, and service updates;
  16. -
  17. As necessary to establish, exercise and defend legal rights;
  18. -
  19. - Perform analytics concerning your use of our online services, - including your responses to our emails and the pages and - advertisements you view; -
  20. -
  21. - As may be required by applicable laws and regulations, including for - compliance with Know Your Customers and risk assessment, Anti-Money - Laundering, anti-corruption and sanctions screening requirements, or - as requested by any judicial process, law enforcement or - governmental agency having or claiming jurisdiction over FCMB or - affiliates; -
  22. -
  23. - To use data analytics to improve our Website, products, or services, - and user experiences; -
  24. -
  25. - For other purposes for which we provide specific notice at the time - you provide or we collect your information. -
  26. -
-

- We may also use data that we collect on an aggregate or anonymous - basis (such that it does not identify any individual customers) for - various business purposes, where permissible under applicable laws and - regulations. -

-

- - 4. Cookies - -

-

- This website, along with most other major websites, uses cookies. - Cookies are pieces of information that a website transfers to the - cookie file on your computer’s hard disk. Cookies enable users to - navigate around the website and (where appropriate) enable us to - tailor the content to fit the needs of visitors who have accessed the - site. -

-

- Firstcitygroup.com uses two types of cookies on this website: -

-
    -
  1. - Session cookies, which are temporary cookies that remain in the - cookie file of your computer until you close your browser (at which - point they are deleted). -
  2. -
  3. - Persistent or stored cookies that remain permanently on the cookie - file of your computer. -
  4. -
-

- Cookies cannot look into your computer and obtain information about - you or your family or read any material kept on your hard drive and, - unless you have logged onto an authenticated page, cookies cannot be - used to identify who you are. -

-

- Cookies cannot be used by anyone else who has access to the computer - to find out anything about you, other than the fact that someone using - the computer has visited a certain website. Cookies do not in any way - compromise the security of your computer. -

-

- Cookies will not be used to contact you for marketing purposes other - than by means of advertisements offered within this website. -

-

- Cookies may be used to record details of pages relating to particular - products and services that you have visited on this website. This is - to provide fcmb.com with generic usage statistics to allow the company - to improve this website and to provide you with information that may - interest you. -

-

- The web browsers of most computers are initially set up to accept - cookies. If you prefer, you can set your web browser to disable - cookies or to inform you when a website is attempting to add a cookie. - You can also delete cookies that have previously been added to your - computer’s cookie file. -

-

- You can set your browser to disable persistent cookies and/or session - cookies but if you disable session cookies, although you will be able - to view this website’s unsecured pages, you may not be able to log - onto any authenticated pages. -

-

- Please visit{" "} - - http://www.allaboutcookies.org/manage-cookies/ - {" "} - to discover how to disable and delete cookies. -

-

- - 5. Disclosures - -

-

- 5.1 Disclosures -

-

- We may divulge individual data to any individual performing review, - lawful, operational, or different services for us. We will utilize - data which does not identify the person for these exercises at - whatever point achievable. Data divulged to vendors or contractors for - operational purposes may not be re-disclosed to others by such a - vendor or contractor. We may reveal individual data when needed to do - as such by a court request, or court order. We may divulge individual - data as we esteem it proper to secure the wellbeing of our customers - or for an investigation identified with open security or to report an - action that has all the earmarks of being disregarding law. We may - divulge individual data to ensure the security and dependability of - this site and to take safety measures against accountability. -

-

- 5.2 Disclosures to Third Parties -

-

- Data about you that is accessible to you by means of fcmb.com, - including your personal data, can become subject to the legal systems - and laws in force in the country where the data is held, received or - stored by you or us. Such data can become subject to disclosure - pursuant to the laws of the country. -

-

- We may reveal your name and other personal data and other monetary - data about you at the request of regulatory agency or in connection - with an examination of us as a bank. This information could be - revealed to internal and external attorneys or auditors, and to others - whom we are required to make such revelations. -

-

- - 6. Information Security and Retention - -

-

- At FCMB, we are fully committed to protecting the information we - collect. We maintain administrative, technical, and physical controls - to actively safeguard the Personal Information you provide or we - collect. These controls are designed to protect against loss, theft, - unauthorized access, disclosure, copying, misuse, or modification. -

-

- Our security measures actively include secure servers, firewalls, data - encryption, and restricted access granted only to employees for - fulfilling their job responsibilities. -

-

- When using a password for any of your accounts, it is essential that - you actively ensure its confidentiality and refrain from sharing it - with anyone. -

-

- We actively conduct our business in accordance with these principles - to actively ensure the confidentiality and protection of your Personal - Information. While transmitting information online may not be entirely - secure, we actively take all reasonable steps to ensure the security - and protection of your Personal Information. -

-

- We will only retain personal information on our servers for as long as - it is actively necessary while providing services to you. In the event - you close your account, we actively store your information on our - servers to comply with regulatory obligations and actively monitor, - detect, and prevent fraud. Any retention of your Personal Data is - solely for such length of time as may be required by law, regulation, - and the internal policies of FCMB, her members and/or affiliates. -

-

- 6.1 Data Protection on the Internet -

-

- At FCMB we utilize encryption innovation to ensure the transmission of - data to or from you by means of fcmb.com. For security reasons and to - protect the security of your information, access to fcmb.com is - restricted to authorized users only. However, because information - about you, your account data and other transactions can be accessed - through a public network, the Internet, there can be no guarantee that - your account information will remain secure and you accept the risk - that unauthorized persons may view such information. If you believe - that an unauthorized person has accessed your information, please - contact the Bank immediately. -

-

- - 7. Updates to this Policy - -

-

- From time to time, we may change, amend or review this Privacy Policy - from time to time to reflect new services or changes in our Privacy - Policy and place any updates on this page. All changes made will be - posted on this page and where changes will materially affect you, we - will notify you of this change by placing a notice online or via mail. - If you keep using our Services, you consent to all amendments of this - Privacy Policy. -

-

- - 8. Contact us - -

-

- For issues relating to personal data, please contact us via any of the - below: -

-

- Corporate Address: Primrose Tower, 17A, Tinubu Street, Marina, Lagos -

-

Telephone: 07003290000, 01-2798800

-

- Email: customerservice@fcmb.com -

-

- Whatsapp: (+234) 09099999814 or (+234) 09099999815 -

-
-
- ); -}; - -export default Main; diff --git a/src/components/TsAndCs/index.ts b/src/components/TsAndCs/index.ts deleted file mode 100644 index 7980d4a..0000000 --- a/src/components/TsAndCs/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import Main from "./Main"; - -export { Main as TsAndCs }; diff --git a/src/components/auth/Login.tsx b/src/components/auth/Login.tsx index ab43042..9ed8354 100644 --- a/src/components/auth/Login.tsx +++ b/src/components/auth/Login.tsx @@ -1,5 +1,6 @@ import { useState } from "react"; import { Button, FloatLabelInput } from ".."; +import CustomModal from "../modal/CustomModal"; import { useNavigate } from "react-router-dom"; import { RouteHandler } from "../../router/routes"; @@ -30,63 +31,82 @@ export default function Login() { setFormDetails((prev) => ({ ...prev, [name]: value })); }; - return ( -
-
-
-
-
-
-

- Welcome! -

-

- Please login with your email and default password provided to you -

-
+ const [modal, setModal] = useState(false) -
- {/* INPUTS */} -
-
- -
-
- -
+ return ( + <> +
+
+
+
+
+
+

+ Welcome! +

+

+ Please login with your email and default password provided to you +

-
-
-
+ { modal && + +
+

We have sent you a verification code to complete this Login. Please check your phone number

+
+ +
+
+
+ } + ); } diff --git a/src/components/auth/OTP.tsx b/src/components/auth/OTP.tsx index d6da8f4..d75428c 100644 --- a/src/components/auth/OTP.tsx +++ b/src/components/auth/OTP.tsx @@ -1,6 +1,6 @@ -import { useState } from "react"; +import { useEffect, useState } from "react"; import { Button, FloatLabelInput } from ".."; -import { useNavigate } from "react-router-dom"; +import { useLocation, useNavigate } from "react-router-dom"; import { RouteHandler } from "../../router/routes"; type FormType = { @@ -15,6 +15,7 @@ type HandleChange = { export default function Login() { const navigate = useNavigate() + const { state } = useLocation(); let [formDetails, setFormDetails] = useState({ email: "", @@ -34,6 +35,13 @@ export default function Login() { navigate(RouteHandler.homepage, {replace:true}) } + useEffect(() => { + if (!state) { + navigate(RouteHandler.loginpage, { replace: true }); + return; + } + }, []); + return (
diff --git a/src/components/index.ts b/src/components/index.ts index 9a501f3..8b9e4af 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -1,8 +1,6 @@ export * from "./Header"; -export * from "./Home"; export * from "./GetStarted"; export * from "./shared"; export * from "./Footer"; export * from "./Icons"; export * from "./Cards"; -export * from "./TsAndCs"; diff --git a/src/components/modal/CustomModal.tsx b/src/components/modal/CustomModal.tsx new file mode 100644 index 0000000..c517272 --- /dev/null +++ b/src/components/modal/CustomModal.tsx @@ -0,0 +1,15 @@ +import React from "react" +interface GetStartedLayoutProps { + children?: React.ReactNode; +} + + +const CustomModal: React.FC = ({ children }) => { + return ( +
+ {children} +
+ ) +} + +export default CustomModal; diff --git a/src/pages/BusinessBankingPage.tsx b/src/pages/BusinessBankingPage.tsx deleted file mode 100644 index 75592f7..0000000 --- a/src/pages/BusinessBankingPage.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import React from "react"; -import { HomeLayout } from "../layouts"; -import { PersonalHero } from "../components"; - -const BusinessBankingPage: React.FC = () => { - return ( - - - Business Banking - - ); -}; - -export default BusinessBankingPage; diff --git a/src/pages/CooperateBankingPage.tsx b/src/pages/CooperateBankingPage.tsx deleted file mode 100644 index 7b35519..0000000 --- a/src/pages/CooperateBankingPage.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import React from "react"; -import { HomeLayout } from "../layouts"; -import { PersonalHero } from "../components"; - -const CooperateBankingPage: React.FC = () => { - return ( - - - Cooperate Banking - - ); -}; - -export default CooperateBankingPage; diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx deleted file mode 100644 index d24ef40..0000000 --- a/src/pages/HomePage.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import React, { useEffect } from "react"; -import { Hero, Requirements } from "../components"; -import { HomeLayout } from "../layouts"; -import { useNavigate } from "react-router-dom"; - -const HomePage: React.FC = () => { - const navigate = useNavigate() - - useEffect(()=>{ - navigate('/auth/login') - },[]) - - return ( - - - - - ); -}; - -export default HomePage; diff --git a/src/pages/InternetBankingPage.tsx b/src/pages/InternetBankingPage.tsx deleted file mode 100644 index 8d0fb70..0000000 --- a/src/pages/InternetBankingPage.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import React from 'react' -import { HomeLayout } from '../layouts' - -const InternetBankingPage: React.FC = () => { - return ( - InternetBankingPage - ) -} - -export default InternetBankingPage \ No newline at end of file diff --git a/src/pages/PersonalBankingPage.tsx b/src/pages/PersonalBankingPage.tsx deleted file mode 100644 index 97679bf..0000000 --- a/src/pages/PersonalBankingPage.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import React from "react"; -import { HomeLayout } from "../layouts"; -import { PersonalHero } from "../components"; - -const PersonalBankingPage: React.FC = () => { - return ( - - - Personal Banking - - ); -}; - -export default PersonalBankingPage; diff --git a/src/pages/TermsAndConditionPage.tsx b/src/pages/TermsAndConditionPage.tsx deleted file mode 100644 index b2c83c2..0000000 --- a/src/pages/TermsAndConditionPage.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import React from "react"; -import { HomeLayout } from "../layouts"; -import { TsAndCs } from "../components"; - -const TermsAndConditionPage: React.FC = () => { - return ( - - - - ); -}; - -export default TermsAndConditionPage; diff --git a/src/pages/index.ts b/src/pages/index.ts index 0496109..345dcec 100644 --- a/src/pages/index.ts +++ b/src/pages/index.ts @@ -1,21 +1,9 @@ -import HomePage from "./HomePage"; import LoginPage from "./LoginPage"; import OTPPage from "./OTPPage"; import StartValidationPage from "./StartValidationPage"; -// import TermsAndConditionPage from "./TermsAndConditionPage"; -// import PersonalBankingPage from "./PersonalBankingPage"; -// import BusinessBankingPage from "./BusinessBankingPage"; -// import CooperateBankingPage from "./CooperateBankingPage"; -// import LetsGetStatedPage from "./LetsGetStatedPage"; export { - HomePage, LoginPage, OTPPage, StartValidationPage, - // TermsAndConditionPage, - // PersonalBankingPage, - // BusinessBankingPage, - // CooperateBankingPage, - // LetsGetStatedPage }; diff --git a/src/router/Router.tsx b/src/router/Router.tsx index 282779a..faf94a6 100644 --- a/src/router/Router.tsx +++ b/src/router/Router.tsx @@ -7,10 +7,6 @@ import { LoginPage, OTPPage, // HomePage, - // TermsAndConditionPage, - // BusinessBankingPage, - // CooperateBankingPage, - // PersonalBankingPage, } from "../pages"; const Routers = () => { diff --git a/src/router/routes.tsx b/src/router/routes.tsx index 07f2c5a..e7e50ca 100644 --- a/src/router/routes.tsx +++ b/src/router/routes.tsx @@ -2,16 +2,4 @@ export class RouteHandler { static homepage = "/"; static loginpage = "/auth/login"; static otppage = "/auth/otp"; - - // static getStarted = "/get-started"; - // static personalBanking = "/personal-banking"; - // static businessBanking = "/business-banking"; - // static cooperateBanking = "/cooperate-banking"; - // static letsGetStarted = "/lets-get-started"; - // static dashboardHome = "/dashboard/home"; - // static dashboardProfile = "/dashboard/profile"; - // static dashboardVerification = "/dashboard/verification"; - // static dashboardPayments = "/dashboard/payments"; - // static dashboardLegals = "/dashboard/legals"; - // static termsAndConditions = "/terms-and-conditions"; } diff --git a/src/utils/data.tsx b/src/utils/data.tsx index 258e8b6..5202056 100644 --- a/src/utils/data.tsx +++ b/src/utils/data.tsx @@ -13,9 +13,9 @@ let process = import.meta.env; export const top_header_data = [ { id: 1, name: 'HOME', href: RouteHandler.homepage }, - { id: 2, name: 'PERSONAL', href: RouteHandler.personalBanking }, - { id: 3, name: 'BUSINESS', href: RouteHandler.businessBanking }, - { id: 4, name: 'CORPORATE', href: RouteHandler.cooperateBanking }, + { id: 2, name: 'PERSONAL', href: '' }, + { id: 3, name: 'BUSINESS', href: '' }, + { id: 4, name: 'CORPORATE', href: '' }, ]; export const lowerMenuItems = [