tirkarthi commented on code in PR #47793:
URL: https://github.com/apache/airflow/pull/47793#discussion_r1995892581


##########
airflow/ui/src/pages/Dag/Code/Code.tsx:
##########
@@ -72,12 +72,25 @@ export const Code = () => {
   const defaultWrap = Boolean(useConfig("default_wrap"));
 
   const [wrap, setWrap] = useState(defaultWrap);
+  const [copyStatus, setCopyStatus] = useState("Copy Code");
 
   const toggleWrap = () => setWrap(!wrap);
   const { colorMode } = useColorMode();
 
   const style = colorMode === "dark" ? oneDark : oneLight;
 
+  const copyCode = async () => {

Review Comment:
   There is already a `clipboard` component from Chakra available in 
`src/components/ui/Clipboard.tsx` which can be used here since it's used across 
the application.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to