1
1
import React , { useEffect } from 'react'
2
2
import { connect } from 'react-redux'
3
3
import { useHistory } from 'react-router-dom'
4
- import { Container , CardBody , Card } from 'Components'
4
+ import { CardBody , Card } from 'Components'
5
5
import ScopeForm from './ScopeForm'
6
6
import { addScope } from 'Plugins/auth-server/redux/actions/ScopeActions'
7
7
import { buildPayload } from 'Utils/PermChecker'
@@ -12,6 +12,7 @@ import {
12
12
} from 'Redux/actions/InitActions'
13
13
import GluuAlert from 'Routes/Apps/Gluu/GluuAlert'
14
14
import { useTranslation } from 'react-i18next'
15
+ import applicationStyle from 'Routes/Apps/Gluu/styles/applicationstyle'
15
16
16
17
function ScopeAddPage ( { scripts, dispatch, attributes, loading, saveOperationFlag, errorInSaveOperationFlag } ) {
17
18
const userAction = { }
@@ -63,18 +64,16 @@ function ScopeAddPage({ scripts, dispatch, attributes, loading, saveOperationFla
63
64
message = { t ( 'messages.error_in_saving' ) }
64
65
show = { errorInSaveOperationFlag }
65
66
/>
66
- < Container >
67
- < Card className = "mb-3" >
68
- < CardBody >
69
- < ScopeForm
70
- scope = { scope }
71
- scripts = { scripts }
72
- attributes = { attributes }
73
- handleSubmit = { handleSubmit }
74
- />
75
- </ CardBody >
76
- </ Card >
77
- </ Container >
67
+ < Card className = "mb-3" style = { applicationStyle . mainCard } >
68
+ < CardBody >
69
+ < ScopeForm
70
+ scope = { scope }
71
+ scripts = { scripts }
72
+ attributes = { attributes }
73
+ handleSubmit = { handleSubmit }
74
+ />
75
+ </ CardBody >
76
+ </ Card >
78
77
</ GluuLoader >
79
78
)
80
79
}
0 commit comments