Skip to content

Commit

Permalink
feat( user bulk upload): add translations
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhigarg-bmw committed Aug 25, 2023
1 parent 386905e commit 45da8aa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/assets/locales/de/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -1691,7 +1691,8 @@
"success": "Success",
"error": "Error",
"retry": "Retry",
"exit": "exit"
"exit": "exit",
"loading": "Loading..."
},
"state": {
"enabled": "aktiv",
Expand Down
3 changes: 2 additions & 1 deletion src/assets/locales/en/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -1654,7 +1654,8 @@
"success": "Success",
"error": "Error",
"retry": "Retry",
"exit": "exit"
"exit": "exit",
"loading": "Loading..."
},
"state": {
"enabled": "enabled",
Expand Down
8 changes: 4 additions & 4 deletions src/components/overlays/AddMultipleUser/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import EditIcon from '@mui/icons-material/Edit'
import ArticleOutlinedIcon from '@mui/icons-material/ArticleOutlined'
import ChevronRightIcon from '@mui/icons-material/ChevronRight'
import { OVERLAYS, PAGES } from 'types/Constants'
import { show } from 'features/control/overlay'
import { show, closeOverlay } from 'features/control/overlay'
import { Dropzone } from '../../shared/basic/Dropzone'
import { rolesToAddSelector } from 'features/admin/userDeprecated/slice'
import {
Expand Down Expand Up @@ -150,7 +150,7 @@ export default function AddMultipleUser() {
}

const handleConfirm = async () => {
if (isSuccess || isError) dispatch(show(OVERLAYS.NONE, ''))
if (isSuccess || isError) dispatch(closeOverlay())
if (uploadedFile && !roles.length) setIsFileUploaded(true)
else if (uploadedFile && roles.length) {
setLoading(true)
Expand Down Expand Up @@ -408,7 +408,7 @@ export default function AddMultipleUser() {
title: t('content.usermanagement.addMultipleUsers.heading'),
intro: t('content.usermanagement.addMultipleUsers.intro'),
closeWithIcon: true,
onCloseWithIcon: () => dispatch(show(OVERLAYS.NONE, '')),
onCloseWithIcon: () => dispatch(closeOverlay()),
}}
/>

Expand All @@ -429,7 +429,7 @@ export default function AddMultipleUser() {
helperText=""
helperTextColor="success"
label=""
loadIndicator="Loading ..."
loadIndicator={t('global.actions.loading')}
loading
size="medium"
onButtonClick={() => {}}
Expand Down

0 comments on commit 45da8aa

Please sign in to comment.