Skip to content

Commit

Permalink
Issue #PS-798 fix: UI Reusable components
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas143shinde committed Jun 20, 2024
1 parent f8e64de commit 4034122
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
5 changes: 4 additions & 1 deletion public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@
"CENTERS_ASSIGNED": "Centers Assigned",
"MANAGE_CENTERS": "Manage Centers",
"ASSIGN": "Assign",
"SEARCH_FACILITATORS": "Search Facilitators.."
"SEARCH_FACILITATORS": "Search Facilitators..",
"ADD_LEARNER":"Add Learners",
"DESELECT_ALL":"Deselect All",
"SELECT_ALL":"Select All"
},
"LOGIN_PAGE": {
"USERNAME": "Username",
Expand Down
5 changes: 4 additions & 1 deletion public/locales/hi/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@
"CENTERS_ASSIGNED": "केंद्र निरुपित",
"MANAGE_CENTERS": "केंद्र प्रबंधित करें",
"ASSIGN": "निरुपण करें",
"SEARCH_FACILITATORS": "खोज सुविधा प्रदाता.."
"SEARCH_FACILITATORS": "खोज सुविधा प्रदाता..",
"ADD_LEARNER": "शिक्षार्थियों को जोड़ें",
"DESELECT_ALL": "सभी को अचयनित करें",
"SELECT_ALL": "सभी को चुनें"
},
"LOGIN_PAGE": {
"USERNAME": "उपयोगकर्ता नाम",
Expand Down
5 changes: 4 additions & 1 deletion public/locales/mr/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@
"CENTERS_ASSIGNED": "केंद्र निरुपित",
"MANAGE_CENTERS": "केंद्र प्रबंधित करा",
"ASSIGN": "नियुक्त करा",
"SEARCH_FACILITATORS": "शोध सुविधा.."
"SEARCH_FACILITATORS": "शोध सुविधा..",
"ADD_LEARNER": "शिक्षार्थी जोडा",
"DESELECT_ALL": "सर्व निवड रद्द करा",
"SELECT_ALL": "सर्व निवडा"
},
"LOGIN_PAGE": {
"USERNAME": "वापरकर्तानाव",
Expand Down
8 changes: 4 additions & 4 deletions src/components/AddLeanerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const AddLeanerModal: React.FC<ManageUsersModalProps> = ({ learnersName }) => {
}}
component="h2"
>
{t('COMMON.MANAGE_CENTERS')}
{t('COMMON.ADD_LEARNER')}
</Typography>
</Box>
<CloseIcon
Expand Down Expand Up @@ -105,7 +105,7 @@ const AddLeanerModal: React.FC<ManageUsersModalProps> = ({ learnersName }) => {
fontWeight: '500',
}}
>
Deselect All
{t('COMMON.DESELECT_ALL')}
</Box>

<IndeterminateCheckBoxOutlinedIcon
Expand All @@ -131,7 +131,7 @@ const AddLeanerModal: React.FC<ManageUsersModalProps> = ({ learnersName }) => {
fontWeight: '500',
}}
>
Select All
{t('COMMON.SELECT_ALL')}
</Box>
<CheckBoxOutlinedIcon
sx={{
Expand Down Expand Up @@ -182,7 +182,7 @@ const AddLeanerModal: React.FC<ManageUsersModalProps> = ({ learnersName }) => {
sx={{ boxShadow: 'none' }}
variant="contained"
>
{t('COMMON.ASSIGN')}
{t('COMMON.ADD')}
</Button>
</Box>
</Box>
Expand Down

0 comments on commit 4034122

Please sign in to comment.