Migrate changes from cloud.

This commit is contained in:
Mike Cao 2023-04-05 09:55:21 -07:00
parent 6dd90ce9ca
commit f56374b259

View File

@ -26,14 +26,20 @@ export default function WebsiteSettings({ websiteId }) {
const [values, setValues] = useState(null);
const [tab, setTab] = useState('details');
const handleSave = data => {
const showSuccess = () => {
showToast({ message: formatMessage(messages.saved), variant: 'success' });
};
const handleSave = data => {
showSuccess();
setValues(state => ({ ...state, ...data }));
};
const handleReset = async value => {
if (value === 'delete') {
await router.push('/websites');
await router.push('/settings/websites');
} else if (value === 'reset') {
showSuccess();
}
};