dank swag pop and lolz
This commit is contained in:
@@ -23,16 +23,17 @@ export const Session = (props: Props) => {
|
||||
const [active, setActive] = useState(false)
|
||||
|
||||
const handleStartSession = async () => {
|
||||
await startSession(clientId)
|
||||
message.loading('Photo sequence starting! Stand by...')
|
||||
await startSession(clientId)
|
||||
setActive(true)
|
||||
}
|
||||
|
||||
const handleRestartSession = async () => {
|
||||
setActive(false)
|
||||
message.loading('Removing all photos...')
|
||||
message.loading(
|
||||
'Deleting photos & restarting capture sequence! Stand by...',
|
||||
)
|
||||
await restartSession(clientId)
|
||||
message.loading('Restarting capture sequence! Stand by...')
|
||||
setActive(true)
|
||||
}
|
||||
|
||||
@@ -42,6 +43,7 @@ export const Session = (props: Props) => {
|
||||
|
||||
const handleNuke = async () => {
|
||||
await killSession(clientId)
|
||||
message.success('Photos Deleted! Going back to dashboard')
|
||||
history.push('/')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user