@@ -11,7 +11,7 @@ import { StoreState } from 'app/types';
11
11
import ConfigureAuthCTA from './components/ConfigureAuthCTA' ;
12
12
import { ProviderCard } from './components/ProviderCard' ;
13
13
import { loadSettings } from './state/actions' ;
14
- import { filterAuthSettings , getProviderUrl } from './utils' ;
14
+ import { getProviderUrl } from './utils' ;
15
15
16
16
import { getRegisteredAuthProviders } from '.' ;
17
17
@@ -20,9 +20,8 @@ interface OwnProps {}
20
20
export type Props = OwnProps & ConnectedProps < typeof connector > ;
21
21
22
22
function mapStateToProps ( state : StoreState ) {
23
- const { settings , isLoading, providerStatuses } = state . authConfig ;
23
+ const { isLoading, providerStatuses } = state . authConfig ;
24
24
return {
25
- settings,
26
25
isLoading,
27
26
providerStatuses,
28
27
} ;
@@ -34,12 +33,7 @@ const mapDispatchToProps = {
34
33
35
34
const connector = connect ( mapStateToProps , mapDispatchToProps ) ;
36
35
37
- export const AuthConfigPageUnconnected = ( {
38
- settings,
39
- providerStatuses,
40
- isLoading,
41
- loadSettings,
42
- } : Props ) : JSX . Element => {
36
+ export const AuthConfigPageUnconnected = ( { providerStatuses, isLoading, loadSettings } : Props ) : JSX . Element => {
43
37
const styles = useStyles2 ( getStyles ) ;
44
38
45
39
useEffect ( ( ) => {
@@ -54,7 +48,6 @@ export const AuthConfigPageUnconnected = ({
54
48
const availableProviders = authProviders . filter (
55
49
( p ) => ! providerStatuses [ p . id ] ?. enabled && ! providerStatuses [ p . id ] ?. configured
56
50
) ;
57
- const authSettings = filterAuthSettings ( settings ) ;
58
51
const firstAvailableProvider = availableProviders ?. length ? availableProviders [ 0 ] : null ;
59
52
60
53
return (
@@ -100,29 +93,6 @@ export const AuthConfigPageUnconnected = ({
100
93
) ) }
101
94
</ div >
102
95
) }
103
- { ! isEmpty ( authSettings ) && (
104
- < div className = { styles . settingsSection } >
105
- < h3 > Settings</ h3 >
106
- < table className = "filter-table" >
107
- < tbody >
108
- { Object . entries ( authSettings ) . map ( ( [ sectionName , sectionSettings ] , i ) => (
109
- < React . Fragment key = { `section-${ i } ` } >
110
- < tr >
111
- < td className = "admin-settings-section" > { sectionName } </ td >
112
- < td />
113
- </ tr >
114
- { Object . entries ( sectionSettings ) . map ( ( [ settingName , settingValue ] , j ) => (
115
- < tr key = { `property-${ j } ` } >
116
- < td className = { styles . settingName } > { settingName } </ td >
117
- < td className = { styles . settingName } > { settingValue } </ td >
118
- </ tr >
119
- ) ) }
120
- </ React . Fragment >
121
- ) ) }
122
- </ tbody >
123
- </ table >
124
- </ div >
125
- ) }
126
96
</ Page . Contents >
127
97
</ Page >
128
98
) ;
0 commit comments