diff --git a/client/src/components/shared/ButtonAddToAllocate/ButtonAddToAllocate.tsx b/client/src/components/shared/ButtonAddToAllocate/ButtonAddToAllocate.tsx index 5ce64bd518..a4ca3ab154 100644 --- a/client/src/components/shared/ButtonAddToAllocate/ButtonAddToAllocate.tsx +++ b/client/src/components/shared/ButtonAddToAllocate/ButtonAddToAllocate.tsx @@ -28,6 +28,9 @@ const ButtonAddToAllocate: FC = ({ const [isTooltipClicked, setIsTooltipClicked] = useState(false); const [isTooltipVisible, setIsTooltipVisible] = useState(false); const tooltipText = useMemo(() => { + if (isArchivedProject && isAllocatedTo) { + return t('donated'); + } if (isAddedToAllocate && isTooltipClicked) { return t('saved'); } @@ -39,7 +42,7 @@ const ButtonAddToAllocate: FC = ({ } return t('saveToAllocate'); // eslint-disable-next-line react-hooks/exhaustive-deps - }, [isAddedToAllocate, isTooltipClicked]); + }, [isAddedToAllocate, isTooltipClicked, isArchivedProject, isAllocatedTo]); const handleTooltipVisibilityChange = (isVisible: boolean) => { setIsTooltipVisible(isVisible); @@ -61,7 +64,7 @@ const ButtonAddToAllocate: FC = ({ Icon={ { if (isTooltipVisible) { setIsTooltipClicked(true); diff --git a/client/src/components/ui/InputText/InputText.module.scss b/client/src/components/ui/InputText/InputText.module.scss index b915273dd5..8905c60324 100644 --- a/client/src/components/ui/InputText/InputText.module.scss +++ b/client/src/components/ui/InputText/InputText.module.scss @@ -89,7 +89,7 @@ font-size: $font-size-18; &.hasSuffix { - padding: 0 5.2rem 0 2.8rem; + padding: 0 5.5rem 0 2.8rem; } } } diff --git a/client/src/locales/en/translation.json b/client/src/locales/en/translation.json index 3a6e04d63a..6021b969e7 100644 --- a/client/src/locales/en/translation.json +++ b/client/src/locales/en/translation.json @@ -75,7 +75,8 @@ "saveToAllocate": "Save to allocate", "saved": "Saved", "removeFromAllocate": "Remove from allocate", - "removed": "Removed" + "removed": "Removed", + "donated": "Donated" }, "rewardsCalculator": { "enterGLMAmount": "Enter a GLM amount",