From 263133f5eed2917cfca9d1b3b43900db33e45f16 Mon Sep 17 00:00:00 2001 From: Kodai Aoyama Date: Thu, 11 Aug 2022 21:48:26 +0900 Subject: [PATCH] add copy button on stub response --- app/pages/stubs/[stubId].tsx | 20 +++++++++++++++++++- app/stubs/components/StubForm.tsx | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/app/pages/stubs/[stubId].tsx b/app/pages/stubs/[stubId].tsx index 4f710ba..35da86a 100644 --- a/app/pages/stubs/[stubId].tsx +++ b/app/pages/stubs/[stubId].tsx @@ -255,7 +255,7 @@ export const Stub = () => { maxH="300" overflowY="auto" > -
+                  
                     {(() => {
                       try {
                         if (
@@ -273,6 +273,24 @@ export const Stub = () => {
                       }
                     })()}
                   
+ + + + + + + diff --git a/app/stubs/components/StubForm.tsx b/app/stubs/components/StubForm.tsx index 452f7a1..cc8e47d 100644 --- a/app/stubs/components/StubForm.tsx +++ b/app/stubs/components/StubForm.tsx @@ -44,7 +44,7 @@ export function StubForm>(props: FormProps) { ]} /> - +