diff --git a/web/src/components/molecules/Common/LinkAssetModal/LinkAssetModal.tsx b/web/src/components/molecules/Common/LinkAssetModal/LinkAssetModal.tsx index c21340cba..774111e9e 100644 --- a/web/src/components/molecules/Common/LinkAssetModal/LinkAssetModal.tsx +++ b/web/src/components/molecules/Common/LinkAssetModal/LinkAssetModal.tsx @@ -1,5 +1,5 @@ import styled from "@emotion/styled"; -import { useState, useRef, useCallback, useMemo } from "react"; +import { useRef, useCallback, useMemo } from "react"; import Button from "@reearth-cms/components/atoms/Button"; import Icon from "@reearth-cms/components/atoms/Icon"; @@ -74,7 +74,6 @@ const LinkAssetModal: React.FC = ({ onUploadAndLink, }) => { const t = useT(); - const [hoveredAssetId, setHoveredAssetId] = useState(); const resetFlag = useRef(false); const options: OptionConfig = useMemo( @@ -127,14 +126,10 @@ const LinkAssetModal: React.FC = ({ width: 48, minWidth: 48, render: (_, asset) => { - const isLink = - (asset.id === linkedAsset?.id && hoveredAssetId !== asset.id) || - (asset.id !== linkedAsset?.id && hoveredAssetId === asset.id); + const isLink = asset.id !== linkedAsset?.id; return (