The display for Rating field type was missing, I just added it based on RatingInput in readonly mode and optimized a bit for performance also. Fixes https://github.com/twentyhq/twenty/issues/5900
17 lines
596 B
TypeScript
17 lines
596 B
TypeScript
import IconTwentyStarFilledRaw from '@ui/display/icon/assets/twenty-star-filled.svg?react';
|
|
import { IconComponentProps } from '@ui/display/icon/types/IconComponent';
|
|
import { THEME_COMMON } from '@ui/theme';
|
|
|
|
type IconTwentyStarFilledProps = Pick<IconComponentProps, 'size' | 'stroke'>;
|
|
|
|
const iconStrokeMd = THEME_COMMON.icon.stroke.md;
|
|
|
|
export const IconTwentyStarFilled = (props: IconTwentyStarFilledProps) => {
|
|
const size = props.size ?? 24;
|
|
const stroke = props.stroke ?? iconStrokeMd;
|
|
|
|
return (
|
|
<IconTwentyStarFilledRaw height={size} width={size} strokeWidth={stroke} />
|
|
);
|
|
};
|