add loader to buttons
This commit is contained in:
@@ -16,8 +16,9 @@ import {useSession} from 'state/session'
|
|||||||
import * as Toast from 'view/com/util/Toast'
|
import * as Toast from 'view/com/util/Toast'
|
||||||
import {CenteredView} from 'view/com/util/Views'
|
import {CenteredView} from 'view/com/util/Views'
|
||||||
import {atoms as a, useBreakpoints, useTheme} from '#/alf'
|
import {atoms as a, useBreakpoints, useTheme} from '#/alf'
|
||||||
import {Button, ButtonText} from '#/components/Button'
|
import {Button, ButtonIcon, ButtonText} from '#/components/Button'
|
||||||
import {EyeSlash_Stroke2_Corner0_Rounded as EyeSlash} from '#/components/icons/EyeSlash'
|
import {EyeSlash_Stroke2_Corner0_Rounded as EyeSlash} from '#/components/icons/EyeSlash'
|
||||||
|
import {Loader} from '#/components/Loader'
|
||||||
import {useHider} from '#/components/moderation/Hider'
|
import {useHider} from '#/components/moderation/Hider'
|
||||||
import {Text} from '#/components/Typography'
|
import {Text} from '#/components/Typography'
|
||||||
|
|
||||||
@@ -152,6 +153,7 @@ export function ListHiddenScreen({
|
|||||||
<ButtonText>
|
<ButtonText>
|
||||||
<Trans>Removed from saved feeds</Trans>
|
<Trans>Removed from saved feeds</Trans>
|
||||||
</ButtonText>
|
</ButtonText>
|
||||||
|
{isProcessing ? <ButtonIcon icon={Loader} /> : null}
|
||||||
</Button>
|
</Button>
|
||||||
) : null}
|
) : null}
|
||||||
{isOwner ? (
|
{isOwner ? (
|
||||||
@@ -182,6 +184,7 @@ export function ListHiddenScreen({
|
|||||||
disabled={isProcessing}>
|
disabled={isProcessing}>
|
||||||
<ButtonText>
|
<ButtonText>
|
||||||
<Trans>Unsubscribe from list</Trans>
|
<Trans>Unsubscribe from list</Trans>
|
||||||
|
{isProcessing ? <ButtonIcon icon={Loader} /> : null}
|
||||||
</ButtonText>
|
</ButtonText>
|
||||||
</Button>
|
</Button>
|
||||||
) : null}
|
) : null}
|
||||||
|
|||||||
Reference in New Issue
Block a user