mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
Merge pull request #1286 from logto-io/charles-log-3251-toast-message-on-save-uri-success-in-guide
fix(console): add toast message on save uri success in guide
This commit is contained in:
commit
b75fea9258
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@ import { I18nKey } from '@logto/phrases';
|
||||||
import { Application } from '@logto/schemas';
|
import { Application } from '@logto/schemas';
|
||||||
import React, { useRef, KeyboardEvent } from 'react';
|
import React, { useRef, KeyboardEvent } from 'react';
|
||||||
import { Controller, FormProvider, useForm } from 'react-hook-form';
|
import { Controller, FormProvider, useForm } from 'react-hook-form';
|
||||||
|
import { toast } from 'react-hot-toast';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import useSWR from 'swr';
|
import useSWR from 'swr';
|
||||||
|
|
||||||
|
@ -50,6 +51,7 @@ const UriInputField = ({ appId, name, title, isSingle = false }: Props) => {
|
||||||
})
|
})
|
||||||
.json<Application>();
|
.json<Application>();
|
||||||
void mutate(updatedApp);
|
void mutate(updatedApp);
|
||||||
|
toast.success(t('general.saved'));
|
||||||
|
|
||||||
// Reset form to set 'isDirty' to false
|
// Reset form to set 'isDirty' to false
|
||||||
reset(getValues());
|
reset(getValues());
|
||||||
|
|
Loading…
Reference in a new issue