From 83ef1f7224a0a41567e188ab5c8ee45255231a95 Mon Sep 17 00:00:00 2001 From: rtrembecky Date: Fri, 10 Nov 2023 17:42:32 +0100 Subject: [PATCH] remove autoFocus --- src/components/Clickable/Clickable.tsx | 5 ++--- src/components/Problems/Discussion.tsx | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/Clickable/Clickable.tsx b/src/components/Clickable/Clickable.tsx index 0956c023..89c191db 100644 --- a/src/components/Clickable/Clickable.tsx +++ b/src/components/Clickable/Clickable.tsx @@ -8,16 +8,15 @@ type ButtonProps = { onClick?: () => void disabled?: boolean children: ReactNode -} & Pick, 'type' | 'autoFocus'> +} & Pick, 'type'> -export const Button: FC = ({children, onClick, disabled, type, autoFocus}) => { +export const Button: FC = ({children, onClick, disabled, type}) => { return ( diff --git a/src/components/Problems/Discussion.tsx b/src/components/Problems/Discussion.tsx index 59432110..4d588369 100644 --- a/src/components/Problems/Discussion.tsx +++ b/src/components/Problems/Discussion.tsx @@ -101,9 +101,7 @@ export const Discussion: FC = ({problemId, problemNumber, close actions={ <> - + } />