Skip to content

Commit

Permalink
Fix/translations (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
luwol03 authored Jan 23, 2022
1 parent 503842e commit 6007503
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Components/SelectionBox/SelectionBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ const SelectionBox = ({
</div>
<div className="select-box-description">
<ul className="select-box-description-ul">
{pro.map((text, i) => (
{(typeof pro === "string" ? [pro] : pro).map((text, i) => (
<Item text={text} Icon={CheckIcon} key={i} />
))}
{contra.map((text, i) => (
{(typeof contra === "string" ? [contra] : contra).map((text, i) => (
<Item text={text} Icon={CloseIcon} key={i} />
))}
</ul>
Expand Down
8 changes: 6 additions & 2 deletions src/Forms/VocabForm/VocabForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -433,13 +433,17 @@ const VocabForm = ({
</div>
</form>
<Modal
title={"Add Package"}
title={t("screens.allPackages.addPackage")}
open={showAddPackage}
onClose={closePackageModal}
>
<PackageForm onSubmitCallback={packageAdded} />
</Modal>
<Modal title={"Add Group"} open={showAddGroup} onClose={closeGroupModal}>
<Modal
title={t("screens.allGroups.addGroup")}
open={showAddGroup}
onClose={closeGroupModal}
>
<GroupForm
fixedPackage
selectedPackage={selectedPackage}
Expand Down

0 comments on commit 6007503

Please sign in to comment.