-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathConfigApiPage.js
More file actions
28 lines (24 loc) · 953 Bytes
/
ConfigApiPage.js
File metadata and controls
28 lines (24 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import React, { useEffect } from 'react'
import { useDispatch, useSelector } from 'react-redux'
import ApiConfigForm from './ApiConfigForm'
import { Card } from 'Components'
import GluuLoader from 'Routes/Apps/Gluu/GluuLoader'
import applicationStyle from 'Routes/Apps/Gluu/styles/applicationstyle'
import SetTitle from 'Utils/SetTitle'
import { useTranslation } from 'react-i18next'
import { getConfigApiConfiguration } from 'Plugins/auth-server/redux/features/configApiSlice'
function ConfigApiPage() {
const dispatch = useDispatch()
const { t } = useTranslation()
const loading = useSelector((state) => state.configApiReducer.loading)
SetTitle(t('titles.config_api_configuration'))
useEffect(() => {
dispatch(getConfigApiConfiguration())
}, [])
return (
<GluuLoader blocking={loading}>
<Card style={applicationStyle.mainCard}>{!loading && <ApiConfigForm />}</Card>
</GluuLoader>
)
}
export default ConfigApiPage