Skip to content

Commit

Permalink
implement PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmxcdev committed Oct 21, 2023
1 parent dd3e049 commit b4d3dd6
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/components/settings/account/AccountDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class AccountDashboard extends Component<IProp> {
)}
{!isUsingWithoutAccount && (
<>
{isLoading && <Loader />}
{isLoading && <Loader color="#FFFFFF" />}

{!isLoading && userInfoRequestFailed && (
<Infobox
Expand Down
2 changes: 1 addition & 1 deletion src/components/settings/recipes/RecipesDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class RecipesDashboard extends Component<IProps, IState> {
</div>

{isLoading ? (
<Loader color="primary" />
<Loader />
) : (
<>
{recipeFilter === 'dev' && (
Expand Down
2 changes: 1 addition & 1 deletion src/components/settings/services/ServicesDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class ServicesDashboard extends Component<IProps> {
</div>
)}
{isLoading ? (
<Loader color="primary" />
<Loader />
) : (
<table className="service-table" role="grid">
<tbody>
Expand Down
2 changes: 1 addition & 1 deletion src/components/settings/team/TeamDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class TeamDashboard extends Component<IProps> {
</span>
</div>
<div className="settings__body">
{isLoading && <Loader />}
{isLoading && <Loader color="#FFFFFF" />}

{!isLoading && userInfoRequestFailed && (
<Infobox
Expand Down
6 changes: 2 additions & 4 deletions src/components/ui/FullscreenLoader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class FullscreenLoader extends Component<IProps> {
render(): ReactElement {
const {
classes,
theme = '',
theme,
className = '',
spinnerColor = '',
children = null,
Expand All @@ -39,9 +39,7 @@ class FullscreenLoader extends Component<IProps> {
>
<H1 className={classes.title}>{title}</H1>
<Loader
color={
spinnerColor || (theme && theme.colorFullscreenLoaderSpinner)
}
color={spinnerColor || theme?.colorFullscreenLoaderSpinner}
loaded={loaded}
/>
{children && <div className={classes.content}>{children}</div>}
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/InfoBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class InfoBar extends Component<IProps> {
className="contentWrapper"
style={{ display: 'flex', gap: '8px' }}
>
<Loader size={18} loaded={!ctaLoading} />
<Loader size={18} loaded={!ctaLoading} color="#FFFFFF" />
{ctaLabel}
</div>
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/Infobox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Infobox extends Component<IProps, IState> {
className="contentWrapper"
style={{ display: 'flex', gap: '8px' }}
>
<Loader size={18} loaded={!ctaLoading} />
<Loader size={18} loaded={!ctaLoading} color="#FFFFFF" />
{ctaLabel}
</div>
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class ButtonComponent extends Component<IProps, IState> {
<>
{showLoader && (
<div className={classes.loaderContainer}>
<Loader size={18} />
<Loader size={18} color="#FFFFFF" />
</div>
)}
<div className={classes.label}>
Expand Down
6 changes: 3 additions & 3 deletions src/components/ui/loader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ class LoaderComponent extends Component<IProps> {
classes,
className,
size = 36,
color = '#FFF',
color = this.props.stores?.settings.app.accentColor,
loaded = false,
} = this.props;
const loaderColor =
color === 'primary' ? this.props.stores?.settings.app.accentColor : color;
const loaderColor = color || '#FFFFFF';

return (
<div
className={classnames({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const styles = theme => ({
message: {
fontSize: 16,
whiteSpace: 'nowrap',
color: '#FFFFFF',
color: theme.colorAppLoaderSpinner,
},
});

Expand Down
2 changes: 1 addition & 1 deletion src/features/workspaces/components/WorkspacesDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class WorkspacesDashboard extends Component<IProps> {
/>
</div>
{getUserWorkspacesRequest.isExecuting ? (
<Loader color="primary" />
<Loader />
) : (
<>
{/* ===== Workspace could not be loaded error ===== */}
Expand Down

0 comments on commit b4d3dd6

Please sign in to comment.