chore: rename action creators to remove "AC"

This commit is contained in:
2024-08-17 19:24:45 +02:00
parent 0fab9d4e0a
commit 7b88633fba
11 changed files with 102 additions and 110 deletions

View File

@@ -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