1
1
import React , {
2
2
useCallback ,
3
- useContext ,
4
3
useEffect ,
5
- useRef ,
6
4
useState ,
7
5
} from 'react'
8
6
import {
@@ -12,7 +10,7 @@ import {
12
10
} from 'Plugins/saml/redux/features/SamlSlice'
13
11
import { useDispatch , useSelector } from 'react-redux'
14
12
import GluuSelectRow from 'Routes/Apps/Gluu/GluuSelectRow'
15
- import { Card , CardBody , Form , FormGroup , Col , Row , Button } from 'Components'
13
+ import { Card , CardBody , Form , FormGroup , Col , Row } from 'Components'
16
14
import { useFormik } from 'formik'
17
15
import GluuInputRow from 'Routes/Apps/Gluu/GluuInputRow'
18
16
import GluuLabel from 'Routes/Apps/Gluu/GluuLabel'
@@ -21,9 +19,7 @@ import GluuCommitFooter from 'Routes/Apps/Gluu/GluuCommitFooter'
21
19
import GluuToggleRow from 'Routes/Apps/Gluu/GluuToggleRow'
22
20
import GluuLoader from 'Routes/Apps/Gluu/GluuLoader'
23
21
import * as Yup from 'yup'
24
- import { ThemeContext } from 'Context/theme/themeContext'
25
22
import { useTranslation } from 'react-i18next'
26
- import applicationStyle from 'Routes/Apps/Gluu/styles/applicationstyle'
27
23
import { Box } from '@mui/material'
28
24
import { getClientScopeByInum } from 'Utils/Util'
29
25
import { PER_PAGE_SCOPES } from 'Plugins/auth-server/common/Constants'
@@ -65,9 +61,6 @@ const TrustRelationForm = ({ configs, viewOnly }) => {
65
61
const [ showUploadBtn , setShowUploadBtn ] = useState ( false )
66
62
const [ fileError , setFileError ] = useState ( false )
67
63
const [ modal , setModal ] = useState ( false )
68
- const theme = useContext ( ThemeContext )
69
- const selectedTheme = theme . state . theme
70
- const inputFile = useRef ( null )
71
64
const isLoading = useSelector (
72
65
( state ) => state . scopeReducer . loadingClientScopes
73
66
)
0 commit comments