From 46b66d8b3b433bb9c4ac1b34ab660ab112797b66 Mon Sep 17 00:00:00 2001 From: Jay kumar Vishwakarma <154872807+jaykumarvishwakarma@users.noreply.github.com> Date: Fri, 13 Mar 2026 18:24:31 +0530 Subject: [PATCH] Make icon prop optional and provide default value --- src/ui/features/goalmanager/GoalIcon.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/features/goalmanager/GoalIcon.tsx b/src/ui/features/goalmanager/GoalIcon.tsx index b5a0d75..1716133 100644 --- a/src/ui/features/goalmanager/GoalIcon.tsx +++ b/src/ui/features/goalmanager/GoalIcon.tsx @@ -3,12 +3,12 @@ import React from 'react' import styled from 'styled-components' import { TransparentButton } from '../../components/TransparentButton' -type Props = { icon: string | null; onClick: (e: React.MouseEvent) => void } +type Props = { icon?: string | null; onClick: (e: React.MouseEvent) => void } export default function GoalIcon(props: Props) { return ( - {props.icon} + {props.icon ?? '🙂'} ) }