@@ -27,22 +27,22 @@ import getThemeColor from 'Context/theme/config'
27
27
import { ROLE_DELETE } from '../../../../app/utils/PermChecker'
28
28
29
29
function UiRoleListPage ( ) {
30
- const apiRoles = useSelector ( state => state . apiRoleReducer . items ) ;
31
- const loading = useSelector ( state => state . apiRoleReducer . loading ) ;
32
- const permissions = useSelector ( state => state . authReducer . permissions ) ;
30
+ const apiRoles = useSelector ( ( state ) => state . apiRoleReducer . items )
31
+ const loading = useSelector ( ( state ) => state . apiRoleReducer . loading )
32
+ const permissions = useSelector ( ( state ) => state . authReducer . permissions )
33
33
34
- const dispatch = useDispatch ( ) ;
35
- const { t } = useTranslation ( )
36
34
const [ modal , setModal ] = useState ( false )
37
- const toggle = ( ) => setModal ( ! modal )
38
- const myActions = [ ]
39
- const options = [ ]
40
- const userAction = { }
41
- const pageSize = localStorage . getItem ( 'paggingSize' ) || 10
42
- const theme = useContext ( ThemeContext )
43
- const selectedTheme = theme . state . theme
44
- const themeColors = getThemeColor ( selectedTheme )
45
- const bgThemeColor = { background : themeColors . background }
35
+ const myActions = [ ] ,
36
+ options = [ ] ,
37
+ userAction = { } ,
38
+ pageSize = localStorage . getItem ( 'paggingSize' ) || 10 ,
39
+ theme = useContext ( ThemeContext ) ,
40
+ selectedTheme = theme . state . theme ,
41
+ themeColors = getThemeColor ( selectedTheme ) ,
42
+ bgThemeColor = { background : themeColors . background } ,
43
+ toggle = ( ) => setModal ( ! modal ) ,
44
+ { t } = useTranslation ( ) ,
45
+ dispatch = useDispatch ( )
46
46
47
47
useEffect ( ( ) => {
48
48
doFetchList ( )
@@ -96,7 +96,7 @@ function UiRoleListPage() {
96
96
return (
97
97
< select
98
98
onChange = { ( e ) => rowData . onChange ( e . target . value ) }
99
- className = " form-control"
99
+ className = ' form-control'
100
100
>
101
101
< option
102
102
selected = {
@@ -129,7 +129,7 @@ function UiRoleListPage() {
129
129
] }
130
130
data = { apiRoles }
131
131
isLoading = { loading || false }
132
- title = ""
132
+ title = ''
133
133
actions = { myActions }
134
134
options = { {
135
135
search : true ,
0 commit comments