From bb9561af5a297d4dc460d1d456dbac54bfeae3cd Mon Sep 17 00:00:00 2001 From: wlee221 Date: Thu, 1 Dec 2022 15:25:34 -0800 Subject: [PATCH] Use override component directly --- .../AccountSettings/DeleteUser/__tests__/DeleteUser.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/components/AccountSettings/DeleteUser/__tests__/DeleteUser.test.tsx b/packages/react/src/components/AccountSettings/DeleteUser/__tests__/DeleteUser.test.tsx index cfdfce762bb..295ffc6d9dc 100644 --- a/packages/react/src/components/AccountSettings/DeleteUser/__tests__/DeleteUser.test.tsx +++ b/packages/react/src/components/AccountSettings/DeleteUser/__tests__/DeleteUser.test.tsx @@ -37,7 +37,7 @@ function CustomWarning({ onCancel, onConfirm, isDisabled }) { const components: DeleteUserComponents = { SubmitButton: (props) => , - Warning: (props) => , + Warning: CustomWarning, Error: ({ children }) => ( <> Custom Error Message