From c60f49dc909fa84ab7c6ee6bc5dcd44580e0d9dd Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Fri, 28 Jun 2024 23:40:05 +0100 Subject: [PATCH] added bank name in env variable --- .env | 6 ++- .env.development | 6 ++- .env.production | 6 ++- .../home/DashboardHomeAttestation.tsx | 4 +- src/components/Footer/BottomFooterOne.tsx | 2 +- src/components/Footer/Footer.tsx | 2 +- .../Home/Requirements/EligiblityBox.tsx | 2 +- src/utils/data.tsx | 48 +++++++++---------- 8 files changed, 44 insertions(+), 32 deletions(-) diff --git a/.env b/.env index 90d12e9..b6fbd9d 100644 --- a/.env +++ b/.env @@ -10,4 +10,8 @@ VITE_USERS_ENDPOINT='https://digifi-apidev.chiefsoft.net/digiusers/v1' # ENQUIRIES CONTACTS VITE_CALL_ENDPOINT='09099000000' -VITE_EMAIL_ENDPOINT='fcmbloan@support.com' \ No newline at end of file +VITE_EMAIL_ENDPOINT='fcmbloan@support.com' + +#BANK NAME +VITE_BANK_NAME='First City Monument Bank' +VITE_BANK_NAME_SHORT='FCMB' \ No newline at end of file diff --git a/.env.development b/.env.development index 71ce632..44e2c11 100644 --- a/.env.development +++ b/.env.development @@ -6,4 +6,8 @@ VITE_TWITTER_URL=https://twitter.com VITE_INSTAGRAM_URL=https://www.instagram.com # BACKEND END POINTS -VITE_USERS_ENDPOINT='https://digifi-apidev.chiefsoft.net/digiusers/v1' \ No newline at end of file +VITE_USERS_ENDPOINT='https://digifi-apidev.chiefsoft.net/digiusers/v1' + +#BANK NAME +VITE_BANK_NAME='First City Monument Bank' +VITE_BANK_NAME_SHORT='FCMB' \ No newline at end of file diff --git a/.env.production b/.env.production index b8d5625..475bfb3 100644 --- a/.env.production +++ b/.env.production @@ -6,4 +6,8 @@ TWITTER_URL=https://twitter.com INSTAGRAM_URL=https://www.instagram.com # BACKEND END POINTS -VITE_USERS_ENDPOINT='https://digifi-apidev.chiefsoft.net/digiusers/v1' \ No newline at end of file +VITE_USERS_ENDPOINT='https://digifi-apidev.chiefsoft.net/digiusers/v1' + +#BANK NAME +VITE_BANK_NAME='First City Monument Bank' +VITE_BANK_NAME_SHORT='FCMB' \ No newline at end of file diff --git a/src/components/Dashboard/home/DashboardHomeAttestation.tsx b/src/components/Dashboard/home/DashboardHomeAttestation.tsx index c2cae7a..c40dc78 100644 --- a/src/components/Dashboard/home/DashboardHomeAttestation.tsx +++ b/src/components/Dashboard/home/DashboardHomeAttestation.tsx @@ -53,7 +53,7 @@ export default function DashboardHomeAttestation({handleNextStep, applicationDet

Applicant's Attestation and Debit Instruction

-

NB: Must be your FCMB account number

+

NB: Must be your {import.meta.env.VITE_BANK_NAME_SHORT} account number

-

By pressing, you agree that you have read, understood and accept the applicatant's attestation and terms and conditions for FCMB +

By pressing, you agree that you have read, understood and accept the applicatant's attestation and terms and conditions for {import.meta.env.VITE_BANK_NAME_SHORT} premium salary loan. You also give us permission to collect financial information and run credit checks on the account provided through our partners

diff --git a/src/components/Footer/BottomFooterOne.tsx b/src/components/Footer/BottomFooterOne.tsx index 2babfea..99e2df6 100644 --- a/src/components/Footer/BottomFooterOne.tsx +++ b/src/components/Footer/BottomFooterOne.tsx @@ -17,7 +17,7 @@ const BottomFooterOne = () => {

- © {date} First City Monument Bank (Licensed by the + © {date} {import.meta.env.VITE_BANK_NAME} (Licensed by the Central Bank of Nigeria)

diff --git a/src/components/Footer/Footer.tsx b/src/components/Footer/Footer.tsx index 9e35174..c149f38 100644 --- a/src/components/Footer/Footer.tsx +++ b/src/components/Footer/Footer.tsx @@ -8,7 +8,7 @@ export default function Footer() {

- {date} @ First City Monument Bank Limited + {date} @ {import.meta.env.VITE_BANK_NAME} Limited

{renderSocialLinks()} diff --git a/src/components/Home/Requirements/EligiblityBox.tsx b/src/components/Home/Requirements/EligiblityBox.tsx index c01feb0..dc800ce 100644 --- a/src/components/Home/Requirements/EligiblityBox.tsx +++ b/src/components/Home/Requirements/EligiblityBox.tsx @@ -12,7 +12,7 @@ const EligiblityBox = () => { You must have a valid BVN
  • - Must have a salary or current bank account with FCMB + Must have a salary or current bank account with {import.meta.env.VITE_BANK_NAME_SHORT}
  • diff --git a/src/utils/data.tsx b/src/utils/data.tsx index 258e8b6..799e4db 100644 --- a/src/utils/data.tsx +++ b/src/utils/data.tsx @@ -82,7 +82,7 @@ export const _lowerMenuItems = [ name: 'SAVINGS ACCOUNTS', linkPath: '/savings-accounts', subItems: [ - { name: 'FCMB EASY ACCOUNT', linkPath: '/easy-account' }, + { name: `${import.meta.env.VITE_BANK_NAME_SHORT} EASY ACCOUNT`, linkPath: '/easy-account' }, { name: 'KIDS (0-17 YRS)', linkPath: '/kids' }, { name: 'FLEXX (18-30 YRS)', linkPath: '/flexx-account' }, { @@ -94,7 +94,7 @@ export const _lowerMenuItems = [ linkPath: '/fcmb-premium-savings-account', }, { - name: 'FCMB SALARY SAVINGS ACCOUNT', + name: `${import.meta.env.VITE_BANK_NAME_SHORT} SALARY SAVINGS ACCOUNT`, linkPath: '/fcmb-salary-savings-account', }, { @@ -150,7 +150,7 @@ export const _lowerMenuItems = [ name: 'WAYS TO BANK', linkPath: '/ways-to-bank', subItems: [ - { name: 'FCMB MOBILE', linkPath: '/fcmb-mobile' }, + { name: `${import.meta.env.VITE_BANK_NAME_SHORT} MOBILE`, linkPath: '/fcmb-mobile' }, { name: 'RETAIL INTERNET BANKING', linkPath: 'https://ibank.fcmb.com/', @@ -160,10 +160,10 @@ export const _lowerMenuItems = [ { name: 'OUR ATM NETWORK', linkPath: '/atm-network' }, { name: 'FLASHMECASH', linkPath: '/flashme-cash' }, { name: 'OUR CARDS', linkPath: '/our-cards' }, - { name: 'FCMB ELECTRONIC CHANNELS', linkPath: '/e-channels' }, + { name: `${import.meta.env.VITE_BANK_NAME_SHORT} ELECTRONIC CHANNELS`, linkPath: '/e-channels' }, { name: 'AGENT BANKING', linkPath: '/agent-banking' }, { - name: 'FCMB SECURE COMMUNICATION', + name: `${import.meta.env.VITE_BANK_NAME_SHORT} SECURE COMMUNICATION`, linkPath: '/secure-communication', }, { name: 'TEMI', linkPath: '/temi' }, @@ -197,7 +197,7 @@ export const _lowerMenuItems = [ name: 'CORPORATE CURRENT ACCOUNT', linkPath: '/corporate-current-account', }, - { name: 'FCMB BUSINESS ACCOUNT', linkPath: '/fcmb-business-account' }, + { name: `${import.meta.env.VITE_BANK_NAME_SHORT} BUSINESS ACCOUNT`, linkPath: '/fcmb-business-account' }, { name: 'DOMICILIARY CURRENT ACCOUNT', linkPath: '/business-domiciliary-current-account', @@ -265,12 +265,12 @@ export const _lowerMenuItems = [ linkPath: 'https://www.fcmbonline.com/', }, { name: 'OUR ATM NETWORK', linkPath: '/atm-network2' }, - { name: 'FCMB ONLINE', linkPath: '/fcmb-online-business' }, + { name: `${import.meta.env.VITE_BANK_NAME_SHORT} ONLINE`, linkPath: '/fcmb-online-business' }, { - name: 'FCMB ELECTRONIC CHANNELS', + name: `${import.meta.env.VITE_BANK_NAME_SHORT} ELECTRONIC CHANNELS`, linkPath: 'https://www.fcmb.com/e-channels', }, - { name: 'FCMB BUSINESS APP', linkPath: '/FCMB-business-app' }, + { name: `${import.meta.env.VITE_BANK_NAME_SHORT} BUSINESS APP`, linkPath: '/FCMB-business-app' }, ], }, ], @@ -292,33 +292,33 @@ export const _lowerMenuItems = [ name: 'GROUP & SUBSIDIARIES', linkPath: '', subItems: [ - { name: 'FCMB GROUP PLC', linkPath: 'https://www.fcmbgroup.com/' }, + { name: `${import.meta.env.VITE_BANK_NAME_SHORT} GROUP PLC`, linkPath: 'https://www.fcmbgroup.com/' }, { name: 'CSL STOCKBROKERS', linkPath: 'https://www.cslstockbrokers.com/', }, { - name: 'FCMB CAPITAL MARKETS', + name: `${import.meta.env.VITE_BANK_NAME_SHORT} CAPITAL MARKETS`, linkPath: 'https://www.fcmbcapitalmarketsng.com/', }, { - name: 'FCMB ASSET MANAGEMENT', + name: `${import.meta.env.VITE_BANK_NAME_SHORT} ASSET MANAGEMENT`, linkPath: 'https://www.fcmbassetmanagement.com/index/', }, { - name: 'FCMB MICROFINANCE BANK', + name: `${import.meta.env.VITE_BANK_NAME_SHORT} MICROFINANCE BANK`, linkPath: '/fcmb-microfinance-initiative', }, - { name: 'FCMB UK', linkPath: 'http://www.fcmbuk.com/' }, + { name: `${import.meta.env.VITE_BANK_NAME_SHORT} UK`, linkPath: 'http://www.fcmbuk.com/' }, { - name: 'FCMB PENSIONS LIMITED', + name: `${import.meta.env.VITE_BANK_NAME_SHORT} PENSIONS LIMITED`, linkPath: 'https://www.fcmbpensions.com/', }, { name: 'CREDIT DIRECT LIMITED', linkPath: 'https://www.creditdirect.ng', }, - { name: 'FCMB TRUSTEES', linkPath: 'http://fcmbtrustees.com/' }, + { name: `${import.meta.env.VITE_BANK_NAME_SHORT} TRUSTEES`, linkPath: 'http://fcmbtrustees.com/' }, ], }, { @@ -372,7 +372,7 @@ export const _lowerMenuItems = [ linkPath: '/current-campaigns-promos', subItems: [ { - name: 'BOOK YOUR FLIGHTS AND PAY IN INSTALMENTS WITH FCMB', + name: `BOOK YOUR FLIGHTS AND PAY IN INSTALMENTS WITH ${import.meta.env.VITE_BANK_NAME_SHORT}`, linkPath: '/247travels', }, { name: 'REFER AND WIN', linkPath: '/refer-and-win' }, @@ -447,21 +447,21 @@ export const footerItems = [ { category: 'GROUP & SUBSIDIARIES', subItems: [ - { text: 'FCMB GROUP PLC', href: 'https://www.fcmbgroup.com/' }, + { text: `${import.meta.env.VITE_BANK_NAME_SHORT} GROUP PLC`, href: 'https://www.fcmbgroup.com/' }, { text: 'CSL STOCKBROKERS', href: 'https://www.cslstockbrokers.com/' }, { - text: 'FCMB CAPITAL MARKETS', + text: `${import.meta.env.VITE_BANK_NAME_SHORT} CAPITAL MARKETS`, href: 'https://www.fcmbcapitalmarketsng.com/', }, { - text: 'FCMB ASSET MANAGEMENT', + text: `${import.meta.env.VITE_BANK_NAME_SHORT} ASSET MANAGEMENT`, href: 'https://www.fcmbassetmanagement.com/index/', }, - { text: 'FCMB MICROFINANCE BANK', href: '/fcmb-microfinance-initiative' }, - { text: 'FCMB UK', href: 'http://www.fcmbuk.com/' }, - { text: 'FCMB PENSIONS LIMITED', href: 'https://www.fcmbpensions.com/' }, + { text: `${import.meta.env.VITE_BANK_NAME_SHORT} MICROFINANCE BANK`, href: '/fcmb-microfinance-initiative' }, + { text: `${import.meta.env.VITE_BANK_NAME_SHORT} UK`, href: 'http://www.fcmbuk.com/' }, + { text: `${import.meta.env.VITE_BANK_NAME_SHORT} PENSIONS LIMITED`, href: 'https://www.fcmbpensions.com/' }, { text: 'CREDIT DIRECT LIMITED', href: 'https://www.creditdirect.ng' }, - { text: 'FCMB TRUSTEES', href: 'http://fcmbtrustees.com/' }, + { text: `${import.meta.env.VITE_BANK_NAME_SHORT} TRUSTEES`, href: 'http://fcmbtrustees.com/' }, ], }, { -- 2.34.1