Skip to content

Commit

Permalink
add move icon
Browse files Browse the repository at this point in the history
  • Loading branch information
vinaybadgujar102 committed Jun 13, 2024
1 parent 2d9f060 commit 8ac9b9f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 9 deletions.
17 changes: 17 additions & 0 deletions src/common/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,23 @@ const Icon: React.FC<IconProps> = ({ title, active }) => {
</svg>
);

case "Move":
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="200"
height="200"
fill={color2}
version="1.1"
viewBox="0 0 232.439 232.439"
xmlSpace="preserve"
>
<g>
<path d="M55.416 64.245a7.499 7.499 0 00-8.174 1.625L2.197 110.915a7.502 7.502 0 000 10.608l45.045 45.045a7.501 7.501 0 0012.804-5.304v-90.09a7.499 7.499 0 00-4.63-6.929zm-10.37 78.912l-26.938-26.938L45.046 89.28v53.877zM121.523 2.196a7.502 7.502 0 00-10.607 0L65.871 47.241a7.5 7.5 0 005.304 12.804h90.09a7.499 7.499 0 005.304-12.804L121.523 2.196zM89.281 45.045l26.938-26.938 26.939 26.938H89.281zM230.242 110.915L185.197 65.87a7.499 7.499 0 00-12.804 5.304v90.09a7.499 7.499 0 0012.804 5.304l45.045-45.045a7.502 7.502 0 000-10.608zm-42.849 32.242V89.28l26.939 26.938-26.939 26.939zM161.263 172.393H71.175a7.499 7.499 0 00-5.304 12.804l45.045 45.046a7.502 7.502 0 0010.608-.001l45.043-45.046a7.499 7.499 0 00-5.304-12.803zm-45.043 41.94l-26.938-26.939h53.876l-26.938 26.939z" />
</g>
</svg>
);

default:
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,16 @@ const RegularGoalActions = ({ goal, open }: { open: boolean; goal: GoalItem }) =
>
<ActionDiv label={t("Edit")} icon="Edit" />
</div>

<div
className="goal-action shareOptions-btn"
onClickCapture={() => {
handleMove(goal);
}}
>
<ActionDiv label={t("Move")} icon="Edit" />
</div>
{!isPartnerGoal && (
<div
className="goal-action shareOptions-btn"
onClickCapture={() => {
handleMove(goal);
}}
>
<ActionDiv label={t("Move")} icon="Move" />
</div>
)}
</div>
</ZModal>
);
Expand Down

0 comments on commit 8ac9b9f

Please sign in to comment.