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:
parent
e28c06b85a
commit
d2bc4e346d
1 changed files with 15 additions and 0 deletions
|
@ -28,6 +28,12 @@ const Label = React.memo(({ name, color, size, isDisabled, onClick }) => {
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{name || '\u00A0'}
|
{name || '\u00A0'}
|
||||||
|
<Button>
|
||||||
|
icon="shuffle"
|
||||||
|
size="tiny"
|
||||||
|
className={styles.editButton}
|
||||||
|
onClick={console.log('Hello')}
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -56,3 +62,12 @@ Label.defaultProps = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Label;
|
export default Label;
|
||||||
|
const filteredItems = useMemo(
|
||||||
|
() =>
|
||||||
|
items.filter(
|
||||||
|
(label) =>
|
||||||
|
(label.name && label.name.toLowerCase().includes(cleanSearch)) ||
|
||||||
|
label.color.includes(cleanSearch),
|
||||||
|
),
|
||||||
|
[items, cleanSearch],
|
||||||
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue