1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-08-09 15:35:29 +02:00

Adding shuffle buttton

This commit is contained in:
Rohit Shambwani 2022-12-12 11:39:48 +05:30
parent e28c06b85a
commit d2bc4e346d

View file

@ -28,6 +28,12 @@ const Label = React.memo(({ name, color, size, isDisabled, onClick }) => {
)}
>
{name || '\u00A0'}
<Button>
icon="shuffle"
size="tiny"
className={styles.editButton}
onClick={console.log('Hello')}
</Button>
</div>
);
@ -56,3 +62,12 @@ Label.defaultProps = {
};
export default Label;
const filteredItems = useMemo(
() =>
items.filter(
(label) =>
(label.name && label.name.toLowerCase().includes(cleanSearch)) ||
label.color.includes(cleanSearch),
),
[items, cleanSearch],
);