Skip to content

Commit

Permalink
adjust np logo and transalations to nepali
Browse files Browse the repository at this point in the history
  • Loading branch information
Janderson Souza Matias authored and Janderson Souza Matias committed Jan 16, 2024
1 parent a368302 commit 660dae6
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
4 changes: 3 additions & 1 deletion src/assets/images/qrcode/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export { default as QROpenApp } from './open_app.png';
import { default as QROpenAppNP } from './open_app_np.png';
import { default as QROpenAppSL } from './open_app_sl.png';
export { default as QRScan } from './scan_qr.png';
export { default as QRSelectSchool } from './select_school.png';
export const QROpenApp = import.meta.env.VITE_COUNTRY === 'np' ? QROpenAppNP : QROpenAppSL;
Binary file added src/assets/images/qrcode/open_app_np.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
1 change: 1 addition & 0 deletions src/i18n/langs/np.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ const npTranslation = {
},
school: {
table: {
emis_number: 'एमिस नम्बर',
actions: 'कार्यहरू',
name: 'नाम',
region: 'क्षेत्रहरू',
Expand Down
4 changes: 2 additions & 2 deletions src/pages/CoachOverTime/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const CoachOverTimePage: React.FC = () => {
<VStack alignItems="start">
<FormLabel htmlFor="region">{t('coach-over-time.filters.region')}</FormLabel>
<Select id="region" value={region} onChange={(e) => setRegion(e.target.value)} bg="#fff">
<option value={''}>All regions</option>
<option value={''}>{t('common.all-regions')}</option>
{regions.map((item) => (
<option value={item.id} key={item.id}>
{item.name}
Expand All @@ -81,7 +81,7 @@ const CoachOverTimePage: React.FC = () => {
<VStack alignItems="start" ml="12px">
<FormLabel htmlFor="schoolId">{t('coach-over-time.filters.school')}</FormLabel>
<Select id="schoolId" value={schoolId} onChange={(e) => setSchoolId(e.target.value)} bg="#fff">
<option value={''}>All schools</option>
<option value={''}>{t('common.all-schools')}</option>
{sessionOverTime.map((item) => (
<option value={item.id} key={item.id}>
{item['School Name']}
Expand Down
14 changes: 7 additions & 7 deletions src/pages/SessionData/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@ const SessionDataPage: React.FC = () => {
<VStack alignItems="start">
<FormLabel htmlFor="period">{t('session-data.filters.period')}</FormLabel>
<Select id="period" value={period} onChange={(e) => setPeriod(e.target.value)} bg="#fff">
<option value={''}>All time</option>
<option value={'7 days'}>Last 7 days</option>
<option value={'30 days'}>Last 30 days</option>
<option value={'60 days'}>Last 60 days</option>
<option value={'90 days'}>Last 90 days</option>
<option value={''}>{t('common.all-time')}</option>
<option value={'7 days'}>{t('common.last-7-days')}</option>
<option value={'30 days'}>{t('common.last-30-days')}</option>
<option value={'60 days'}>{t('common.last-60-days')}</option>
<option value={'90 days'}>{t('common.last-90-days')}</option>
</Select>
</VStack>
<VStack alignItems="start">
<FormLabel htmlFor="region">{t('session-data.filters.region')}</FormLabel>
<Select id="region" value={region} onChange={(e) => setRegion(e.target.value)} bg="#fff">
<option value={''}>All regions</option>
<option value={''}>{t('common.all-regions')}</option>
{regions.map((item) => (
<option value={item.id}>{item.name}</option>
))}
Expand All @@ -86,7 +86,7 @@ const SessionDataPage: React.FC = () => {
<VStack alignItems="start">
<FormLabel htmlFor="schoolId">{t('session-data.filters.school')}</FormLabel>
<Select id="schoolId" value={schoolId} onChange={(e) => setSchoolId(e.target.value)} bg="#fff">
<option value={''}>All schools</option>
<option value={''}>{t('common.all-schools')}</option>
{sessionData.map((item) => (
<option value={item.id}>{item['School Name']}</option>
))}
Expand Down

0 comments on commit 660dae6

Please sign in to comment.