Show a toast if the user tries to save their work (#6051)
* Show a toast if the user tries to save their work And store the fact that they've seen it in localStorage so we don't spam them every time they hit it after they see it. * Remove any localStorage logic, toast every time
This commit is contained in:
@ -30,6 +30,7 @@ import { commandBarActor } from 'machines/commandBarMachine'
|
||||
import { useToken } from 'machines/appMachine'
|
||||
import { useSettings } from 'machines/appMachine'
|
||||
import { rustContext } from 'lib/singletons'
|
||||
import toast from 'react-hot-toast'
|
||||
maybeWriteToDisk()
|
||||
.then(() => {})
|
||||
.catch(() => {})
|
||||
@ -98,6 +99,10 @@ export function App() {
|
||||
}
|
||||
)
|
||||
|
||||
useHotkeyWrapper(['mod + s'], () => {
|
||||
toast.success('Your work is auto-saved in real-time')
|
||||
})
|
||||
|
||||
const paneOpacity = [onboardingPaths.CAMERA, onboardingPaths.STREAMING].some(
|
||||
(p) => p === onboardingStatus.current
|
||||
)
|
||||
|
Reference in New Issue
Block a user