From ced307fef34f47c425cb7a73c025bdba743fe74d Mon Sep 17 00:00:00 2001 From: Arthur Hilbert Date: Thu, 16 Jun 2022 10:06:22 +0200 Subject: [PATCH 1/9] some download modal refactoring --- .../oxalis/view/action-bar/download_modal_view.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/javascripts/oxalis/view/action-bar/download_modal_view.tsx b/frontend/javascripts/oxalis/view/action-bar/download_modal_view.tsx index c80145cc914..164dbfbab52 100644 --- a/frontend/javascripts/oxalis/view/action-bar/download_modal_view.tsx +++ b/frontend/javascripts/oxalis/view/action-bar/download_modal_view.tsx @@ -34,7 +34,13 @@ type Props = { hasVolumeFallback: boolean; }; -function Hint({ children, style }: { children: React.ReactNode; style: React.CSSProperties }) { +export function Hint({ + children, + style, +}: { + children: React.ReactNode; + style: React.CSSProperties; +}) { return (
{children}
); @@ -45,7 +51,7 @@ export async function copyToClipboard(code: string) { Toast.success("Snippet copied to clipboard."); } -function MoreInfoHint() { +export function MoreInfoHint() { return ( void }) { +export function CopyableCodeSnippet({ code, onCopy }: { code: string; onCopy?: () => void }) { return (