diff --git a/dashboard/src/app/[tenantId]/(diagram)/wfRun/[...ids]/components/Variables.tsx b/dashboard/src/app/[tenantId]/(diagram)/wfRun/[...ids]/components/Variables.tsx index ee1989afb..cccf02436 100644 --- a/dashboard/src/app/[tenantId]/(diagram)/wfRun/[...ids]/components/Variables.tsx +++ b/dashboard/src/app/[tenantId]/(diagram)/wfRun/[...ids]/components/Variables.tsx @@ -2,7 +2,7 @@ import { VARIABLE_TYPES } from '@/app/constants' import { getVariableValue } from '@/app/utils' import { ThreadVarDef, Variable, WfRunVariableAccessLevel } from 'littlehorse-client/proto' import { FC } from 'react' -import { OverflowText } from '../../../../components/Overflow' +import { OverflowText } from '../../../../components/OverflowText' type VariablesProps = { variableDefs: ThreadVarDef[] diff --git a/dashboard/src/app/[tenantId]/components/CopyButton.tsx b/dashboard/src/app/[tenantId]/components/CopyButton.tsx index 3a67aad1f..65dd7b1ca 100644 --- a/dashboard/src/app/[tenantId]/components/CopyButton.tsx +++ b/dashboard/src/app/[tenantId]/components/CopyButton.tsx @@ -1,3 +1,4 @@ +'use client' import { FC, useState } from 'react' import { Button } from '@/components/ui/button' import { Check, Copy } from 'lucide-react' @@ -11,17 +12,15 @@ interface CopyButtonProps { export const CopyButton: FC = ({ value, className }) => { const [copied, setCopied] = useState(false) - const handleCopy = () => { - navigator.clipboard.writeText(value) - setCopied(true) - setTimeout(() => setCopied(false), 1000) - } - return (