Skip to content

Commit

Permalink
Merge pull request #139 from c4dt/frontend
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
ineiti authored Mar 6, 2024
2 parents d628971 + 6a40c80 commit 54f8d07
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions web/frontend/src/pages/form/components/AddQuestionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const AddQuestionModal: FC<AddQuestionModalProps> = ({
<label className="block text-md mt font-medium text-gray-500">
{t('title')}
</label>
{language === 'en' && (
{(language === 'en' || !['en', 'fr', 'de'].includes(language)) && (
<input
value={Title.En}
onChange={(e) => handleChange('Title')(e)}
Expand Down Expand Up @@ -241,7 +241,7 @@ const AddQuestionModal: FC<AddQuestionModalProps> = ({
<label className="block text-md mt font-medium text-gray-500">
{t('hint')}
</label>
{language === 'en' && (
{(language === 'en' || !['en', 'fr', 'de'].includes(language)) && (
<input
value={Hint.En}
onChange={(e) => handleChange('Hint')(e)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ const SubjectComponent: FC<SubjectComponentProps> = ({
</div>
{titleChanging ? (
<div className="flex flex-col mt-3 mb-2">
{language === 'en' && (
{(language === 'en' || !['en', 'fr', 'de'].includes(language)) && (
<input
value={Title.En}
onChange={(e) =>
Expand Down
2 changes: 1 addition & 1 deletion web/frontend/src/pages/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const urlizeLabel = (label: string, url?: string) => {
return url ? (
<a
href={url}
style={{ color: 'red', textDecoration: 'underline', textDecorationColor: 'white' }}>
style={{ color: 'white', textDecoration: 'underline', textDecorationColor: 'red' }}>
{label}
</a>
) : (
Expand Down

0 comments on commit 54f8d07

Please sign in to comment.