-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced Table component for html table with Inputs (#7041)
* Replaced Tamble component for html table with Inputs * added missing translation * fixed e2e * added error message to inputs * added key to prevent wrong registration of inputs --------- Co-authored-by: Santiago <borrajosantiago@gmail.com>
- Loading branch information
Showing
5 changed files
with
128 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 0 additions & 38 deletions
38
app/react/V2/Routes/Settings/Translations/components/FormInput.tsx
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
app/react/V2/Routes/Settings/Translations/components/LanguagePill.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react'; | ||
import { Pill } from 'V2/Components/UI'; | ||
|
||
const LanguagePill = ({ | ||
languageKey, | ||
status, | ||
}: { | ||
languageKey: string | undefined; | ||
status: string; | ||
}) => { | ||
let color: 'gray' | 'primary' | 'yellow' = 'gray'; | ||
if (status === 'defaultLanguage') color = 'primary'; | ||
if (status === 'untranslated') color = 'yellow'; | ||
|
||
return <Pill color={color}>{languageKey?.toUpperCase()}</Pill>; | ||
}; | ||
|
||
export { LanguagePill }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters