diff --git a/apps/app/components/analytics/custom-analytics/sidebar.tsx b/apps/app/components/analytics/custom-analytics/sidebar.tsx index 5988e654d..26eb66d12 100644 --- a/apps/app/components/analytics/custom-analytics/sidebar.tsx +++ b/apps/app/components/analytics/custom-analytics/sidebar.tsx @@ -153,12 +153,21 @@ export const AnalyticsSidebar: React.FC = ({ return (
- {project.icon ? ( + {project.emoji ? ( - {String.fromCodePoint(parseInt(project.icon))} + {String.fromCodePoint(parseInt(project.emoji))} + ) : project.icon_prop ? ( +
+ + {project.icon_prop.name} + +
) : ( - + {project?.name.charAt(0)} )} @@ -254,12 +263,21 @@ export const AnalyticsSidebar: React.FC = ({ ) : (
- {projectDetails?.icon ? ( - - {String.fromCodePoint(parseInt(projectDetails.icon))} - + {projectDetails?.emoji ? ( +
+ {String.fromCodePoint(parseInt(projectDetails.emoji))} +
+ ) : projectDetails?.icon_prop ? ( +
+ + {projectDetails.icon_prop.name} + +
) : ( - + {projectDetails?.name.charAt(0)} )} diff --git a/apps/app/components/emoji-icon-picker/index.tsx b/apps/app/components/emoji-icon-picker/index.tsx index e52335e47..f8f8e54e9 100644 --- a/apps/app/components/emoji-icon-picker/index.tsx +++ b/apps/app/components/emoji-icon-picker/index.tsx @@ -25,13 +25,7 @@ const tabOptions = [ }, ]; -const EmojiIconPicker: React.FC = ({ - label, - value, - onChange, - onIconColorChange, - onIconsClick, -}) => { +const EmojiIconPicker: React.FC = ({ label, value, onChange, onIconColorChange }) => { const ref = useRef(null); const [isOpen, setIsOpen] = useState(false); @@ -181,13 +175,13 @@ const EmojiIconPicker: React.FC = ({

- {icons.material_rounded.map((icon) => ( + {icons.material_rounded.map((icon, index) => (