openreplay/frontend/app/components/shared/Insights/SankeyChart/NodeDropdown.tsx
Andrey Babushkin fd5c0c9747
Add lokalisation (#3092)
* applied eslint

* add locales and lint the project

* removed error boundary

* updated locales

* fix min files

* fix locales
2025-03-06 17:43:15 +01:00

25 lines
543 B
TypeScript

import React from 'react';
import { Select } from 'antd';
import { useTranslation } from 'react-i18next';
interface Props {
payload: any;
}
function NodeDropdown(props: Props) {
const { t } = useTranslation();
return (
<Select
style={{ width: 120 }}
placeholder={t('Select Event')}
dropdownStyle={{
border: 'none',
}}
>
<Select.Option value="jack">{t('Jack')}</Select.Option>
<Select.Option value="lucy">{t('Lucy')}</Select.Option>
</Select>
);
}
export default NodeDropdown;