Skip to content

Commit

Permalink
CB-4654 ConfigurationList uses container component
Browse files Browse the repository at this point in the history
  • Loading branch information
s.teleshev committed Mar 19, 2024
1 parent a7c729e commit 674bf79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
* you may not use this file except in compliance with the License.
*/

.container {
display: flex;
flex-direction: column;
overflow: auto;
flex: 1;
}

.filter {
margin: 0 24px 12px 24px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { AuthProvider, AuthProviderConfiguration, AuthProvidersResource, compare
import {
Button,
Cell,
Container,
Filter,
getComputed,
IconOrImage,
Expand Down Expand Up @@ -107,7 +108,7 @@ export const ConfigurationsList = observer<Props>(function ConfigurationsList({

if (activeProvider && activeConfiguration) {
return (
<div className={s(style, { container: true }, className)}>
<Container className={className} center>
<Loader state={authTaskState} message="authentication_authorizing" hideException>
<div className={s(style, { center: true })}>
{providerDisabled ? (
Expand All @@ -122,12 +123,12 @@ export const ConfigurationsList = observer<Props>(function ConfigurationsList({
)}
</div>
</Loader>
</div>
</Container>
);
}

return (
<container className={s(style, { container: true }, className)}>
<Container className={className} center>
{configurations.length >= 10 && (
<Filter
className={s(style, { filter: true })}
Expand Down Expand Up @@ -155,6 +156,6 @@ export const ConfigurationsList = observer<Props>(function ConfigurationsList({
})}
</div>
<Loader state={authTaskState} message="authentication_authorizing" overlay hideException />
</container>
</Container>
);
});

0 comments on commit 674bf79

Please sign in to comment.