mirror of
https://github.com/ershisan99/it-incubator-todolist-ts-17-live-2024-08-17.git
synced 2026-02-03 21:02:12 +00:00
chore: rename action creators to remove "AC"
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React from 'react'
|
||||
import { useDispatch, useSelector } from 'react-redux'
|
||||
import { AppRootStateType } from 'app/store'
|
||||
import { setAppErrorAC } from 'app/app-reducer'
|
||||
import { setAppError } from 'app/app-reducer'
|
||||
import { AlertProps, Snackbar } from '@mui/material'
|
||||
import MuiAlert from '@mui/material/Alert'
|
||||
|
||||
@@ -31,7 +31,7 @@ export function ErrorSnackbar() {
|
||||
if (reason === 'clickaway') {
|
||||
return
|
||||
}
|
||||
dispatch(setAppErrorAC(null))
|
||||
dispatch(setAppError(null))
|
||||
}
|
||||
|
||||
const isOpen = error !== null
|
||||
|
||||
Reference in New Issue
Block a user