mirror of
https://github.com/ershisan99/it-incubator-todolist-ts-17-live-2024-08-17.git
synced 2026-02-04 05:12:07 +00:00
chore: rename types to remove word "Type"
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React from 'react'
|
||||
import { useDispatch, useSelector } from 'react-redux'
|
||||
import { AppRootStateType } from 'app/store'
|
||||
import { AppRootState } from 'app/store'
|
||||
import { setAppError } from 'app/app-reducer'
|
||||
import { AlertProps, Snackbar } from '@mui/material'
|
||||
import MuiAlert from '@mui/material/Alert'
|
||||
@@ -19,7 +19,7 @@ const Alert = React.forwardRef<HTMLDivElement, AlertProps>(
|
||||
)
|
||||
|
||||
export function ErrorSnackbar() {
|
||||
const error = useSelector<AppRootStateType, string | null>(
|
||||
const error = useSelector<AppRootState, string | null>(
|
||||
(state) => state.app.error
|
||||
)
|
||||
const dispatch = useDispatch()
|
||||
|
||||
Reference in New Issue
Block a user