Skip to content
Snippets Groups Projects
Unverified Commit c06b1bad authored by Jed Fox's avatar Jed Fox Committed by GitHub
Browse files

Consistency improvements for <AnimatedLoading> (#1390)

parent 94a6b53f
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ import { type CSSProperties } from 'glamor';
import type { NotificationWithId } from 'loot-core/src/client/state-types/notifications';
import { useActions } from '../hooks/useActions';
import Loading from '../icons/AnimatedLoading';
import AnimatedLoading from '../icons/AnimatedLoading';
import Delete from '../icons/v0/Delete';
import { styles, colors } from '../style';
......@@ -210,8 +210,7 @@ function Notification({
justifyContent: 'center',
}}
>
<Loading
color="currentColor"
<AnimatedLoading
style={{ width: 20, height: 20, color: 'currentColor' }}
/>
</View>
......
import React, { useState, useRef } from 'react';
import useSyncServerStatus from '../../hooks/useSyncServerStatus';
import Loading from '../../icons/AnimatedLoading';
import AnimatedLoading from '../../icons/AnimatedLoading';
import Add from '../../icons/v1/Add';
import ArrowsExpand3 from '../../icons/v2/ArrowsExpand3';
import ArrowsShrink3 from '../../icons/v2/ArrowsShrink3';
......@@ -288,7 +288,10 @@ export function AccountHeader({
/>
{workingHard ? (
<View>
<Loading color={colors.n1} style={{ width: 16, height: 16 }} />
<AnimatedLoading
color={colors.n1}
style={{ width: 16, height: 16 }}
/>
</View>
) : (
<SelectedTransactionsButton
......
......@@ -2,7 +2,7 @@ import React, { forwardRef } from 'react';
import { css, type CSSProperties } from 'glamor';
import Loading from '../../icons/AnimatedLoading';
import AnimatedLoading from '../../icons/AnimatedLoading';
import { styles, colors } from '../../style';
import { type HTMLPropsWithStyle } from '../../types/utils';
......@@ -137,7 +137,7 @@ export const ButtonWithLoading = forwardRef<
justifyContent: 'center',
}}
>
<Loading color="inherit" style={{ width: 20, height: 20 }} />
<AnimatedLoading style={{ width: 20, height: 20 }} />
</View>
)}
<View
......
......@@ -9,7 +9,7 @@ import ReactModal from 'react-modal';
import type { CSSProperties } from 'glamor';
import hotkeys from 'hotkeys-js';
import Loading from '../../icons/AnimatedLoading';
import AnimatedLoading from '../../icons/AnimatedLoading';
import Delete from '../../icons/v0/Delete';
import { styles, colors } from '../../style';
import tokens from '../../tokens';
......@@ -217,7 +217,10 @@ const Modal = ({
zIndex: 1000,
}}
>
<Loading style={{ width: 20, height: 20 }} color={colors.n1} />
<AnimatedLoading
style={{ width: 20, height: 20 }}
color={colors.n1}
/>
</View>
)}
</ModalContent>
......
import React, { useState } from 'react';
const SvgLoading = props => {
let { color = '#fff' } = props;
let { color = 'currentColor' } = props;
let [gradientId] = useState('gradient-' + Math.random());
return (
......
---
category: Maintenance
authors: [j-f1]
---
Consistency improvements for `<AnimatedLoading>`
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment