add field config new icons (#6996)
https://github.com/twentyhq/twenty/issues/6950 Add new icons to Object Fields Data types. Before:  After:  
This commit is contained in:
committed by
GitHub
parent
7fd86a860c
commit
cf8b1161cc
@ -0,0 +1,26 @@
|
||||
import { useTheme } from '@emotion/react';
|
||||
import { IllustrationIconWrapper } from '@ui/display/icon/components/IllustrationIconWrapper';
|
||||
|
||||
import IllustrationIconSettingRaw from '@ui/display/icon/assets/illustration-setting.svg?react';
|
||||
import { IconComponentProps } from '@ui/display/icon/types/IconComponent';
|
||||
|
||||
type IllustrationIconSettingProps = Pick<IconComponentProps, 'size'>;
|
||||
|
||||
export const IllustrationIconSetting = (
|
||||
props: IllustrationIconSettingProps,
|
||||
) => {
|
||||
const theme = useTheme();
|
||||
const size = props.size ?? theme.icon.size.lg;
|
||||
const { color, fill } = theme.IllustrationIcon;
|
||||
|
||||
return (
|
||||
<IllustrationIconWrapper>
|
||||
<IllustrationIconSettingRaw
|
||||
height={size}
|
||||
width={size}
|
||||
fill={fill}
|
||||
color={color}
|
||||
/>
|
||||
</IllustrationIconWrapper>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user