Skip to content

Commit

Permalink
i18n: Filter input placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
avoinea committed Aug 17, 2023
1 parent 68a8817 commit 6acbd1f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/manage/Blocks/Accordion/AccordionFilter.jsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
import React from 'react';
import { Accordion, Input } from 'semantic-ui-react';
import { defineMessages, useIntl } from 'react-intl';
import { Icon } from './util';
import './editor.less';

const messages = defineMessages({
placeholder: {
id: 'Type to filter...',
defaultMessage: 'Type to filter...',
},
});

const AccordionFilter = ({
config,
data,
filterValue,
handleFilteredValueChange,
}) => {
const intl = useIntl();
const { titleIcons } = config;
const iconOnRight = data.right_arrows;
const iconPosition = iconOnRight ? 'rightPosition' : 'leftPosition';
Expand Down Expand Up @@ -37,7 +46,7 @@ const AccordionFilter = ({
fluid
className="input-accordion-title"
transparent
placeholder="Type to filter..."
placeholder={intl.formatMessage(messages.placeholder)}
value={filterValue}
onChange={(e) => handleFilteredValueChange(e.target.value)}
/>
Expand Down

0 comments on commit 6acbd1f

Please sign in to comment.