mirror of
https://github.com/logto-io/logto.git
synced 2025-03-31 22:51:25 -05:00
refactor(console): remove redundant reset logic on sign-in experience tabs (#1432)
This commit is contained in:
parent
a6005bbde3
commit
f97c55c574
3 changed files with 0 additions and 6 deletions
|
@ -16,8 +16,6 @@ const BrandingTab = ({ defaultData, isDataDirty }: Props) => {
|
|||
const { reset } = useFormContext<SignInExperienceForm>();
|
||||
|
||||
useEffect(() => {
|
||||
reset(defaultData);
|
||||
|
||||
return () => {
|
||||
reset(defaultData);
|
||||
};
|
||||
|
|
|
@ -16,8 +16,6 @@ const OthersTab = ({ defaultData, isDataDirty }: Props) => {
|
|||
const { reset } = useFormContext<SignInExperienceForm>();
|
||||
|
||||
useEffect(() => {
|
||||
reset(defaultData);
|
||||
|
||||
return () => {
|
||||
reset(defaultData);
|
||||
};
|
||||
|
|
|
@ -15,8 +15,6 @@ const SignInMethodsTab = ({ defaultData, isDataDirty }: Props) => {
|
|||
const { reset } = useFormContext<SignInExperienceForm>();
|
||||
|
||||
useEffect(() => {
|
||||
reset(defaultData);
|
||||
|
||||
return () => {
|
||||
reset(defaultData);
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue