TWNTY-6808 - Ability to Filter by Creation Source (#7078)
### Description - Ability to Filter by Creation Source ### Demo LOOM: <https://www.loom.com/share/dba9c3d37a4242fe90f977b1babffbde?sid=59b07c51-d245-43cc-bb38-7d898ef72878> ### Refs #6808 Fixes #6808 --------- Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com> Co-authored-by: gitstart-twenty <140154534+gitstart-twenty@users.noreply.github.com> Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
This commit is contained in:
committed by
GitHub
parent
2cd3219636
commit
35788af351
@ -22,7 +22,7 @@ type MenuItemMultiSelectAvatarProps = {
|
||||
avatar?: ReactNode;
|
||||
selected: boolean;
|
||||
isKeySelected?: boolean;
|
||||
text: string;
|
||||
text?: string;
|
||||
className?: string;
|
||||
onSelectChange?: (selected: boolean) => void;
|
||||
};
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { css, useTheme } from '@emotion/react';
|
||||
import styled from '@emotion/styled';
|
||||
import { IconCheck, IconComponent } from 'twenty-ui';
|
||||
import { IconCheck, IconChevronRight, IconComponent } from 'twenty-ui';
|
||||
|
||||
import { MenuItemLeftContent } from '../internals/components/MenuItemLeftContent';
|
||||
import { StyledMenuItemBase } from '../internals/components/StyledMenuItemBase';
|
||||
@ -45,6 +45,7 @@ type MenuItemSelectProps = {
|
||||
onClick?: () => void;
|
||||
disabled?: boolean;
|
||||
hovered?: boolean;
|
||||
hasSubMenu?: boolean;
|
||||
};
|
||||
|
||||
export const MenuItemSelect = ({
|
||||
@ -55,6 +56,7 @@ export const MenuItemSelect = ({
|
||||
onClick,
|
||||
disabled,
|
||||
hovered,
|
||||
hasSubMenu = false,
|
||||
}: MenuItemSelectProps) => {
|
||||
const theme = useTheme();
|
||||
|
||||
@ -68,6 +70,12 @@ export const MenuItemSelect = ({
|
||||
>
|
||||
<MenuItemLeftContent LeftIcon={LeftIcon} text={text} />
|
||||
{selected && <IconCheck size={theme.icon.size.md} />}
|
||||
{hasSubMenu && (
|
||||
<IconChevronRight
|
||||
size={theme.icon.size.sm}
|
||||
color={theme.font.color.tertiary}
|
||||
/>
|
||||
)}
|
||||
</StyledMenuItemSelect>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user