mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-05-07 16:50:23 +00:00
fix: missing key translate for server add url
This commit is contained in:
parent
ce2c021e5f
commit
1e0963e8af
1 changed files with 3 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
// Copyright (C) 2017-2024 Smart code 203358507
|
||||
|
||||
import React, { ChangeEvent, useCallback, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import Icon from '@stremio/stremio-icons/react';
|
||||
import { Button, TextInput } from 'stremio/components';
|
||||
import styles from './AddItem.less';
|
||||
|
|
@ -11,6 +12,7 @@ type Props = {
|
|||
};
|
||||
|
||||
const AddItem = ({ onCancel, handleAddUrl }: Props) => {
|
||||
const { t } = useTranslation();
|
||||
const [inputValue, setInputValue] = useState('');
|
||||
|
||||
const handleValueChange = useCallback(({ target }: ChangeEvent<HTMLInputElement>) => {
|
||||
|
|
@ -28,7 +30,7 @@ const AddItem = ({ onCancel, handleAddUrl }: Props) => {
|
|||
value={inputValue}
|
||||
onChange={handleValueChange}
|
||||
onSubmit={onSubmit}
|
||||
placeholder={'Enter URL'}
|
||||
placeholder={t('SETTINGS_SERVER_ADD_URL_PLACEHOLDER')}
|
||||
/>
|
||||
<div className={styles['actions']}>
|
||||
<Button className={styles['add']} onClick={onSubmit}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue