Skip to content

Commit

Permalink
Merge pull request #140 from c4dt/frontend
Browse files Browse the repository at this point in the history
Minor frontend fixes
  • Loading branch information
PascalinDe authored Mar 7, 2024
2 parents 54f8d07 + a384645 commit 779ba47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ const AddQuestionModal: FC<AddQuestionModalProps> = ({
<input
value={Title.URL}
onChange={(e) => handleChange('Title')(e)}
name="QuestionTitleURL"
name="URL"
type="text"
placeholder={t('url')}
className="my-1 px-1 w-60 ml-1 border rounded-md"
Expand Down
4 changes: 1 addition & 3 deletions web/frontend/src/pages/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ export function internationalize(language: string, internationalizable: Hint | T

export const urlizeLabel = (label: string, url?: string) => {
return url ? (
<a
href={url}
style={{ color: 'white', textDecoration: 'underline', textDecorationColor: 'red' }}>
<a href={url} style={{ textDecoration: 'underline', textDecorationColor: 'red' }}>
{label}
</a>
) : (
Expand Down

0 comments on commit 779ba47

Please sign in to comment.