重构目前所有的复制颜色代码功能使用统一的Hook。
This commit is contained in:
		| @@ -7,6 +7,7 @@ export function useCopyColor() { | ||||
|   const { showToast } = useNotification(); | ||||
|   const [cpState, copyToClipboard] = useCopyToClipboard(); | ||||
|   const copyAction = useCallback((color: string) => { | ||||
|     if (isNil(color)) return; | ||||
|     if (color.startsWith('#')) { | ||||
|       copyToClipboard(color); | ||||
|     } else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user