99puxwol5: Give the feed retry buttons the outline sweep style now that legacy.css is gone
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import { useCallback, useEffect, useRef, useState, type MouseEvent, type Ref } from "react";
|
||||
import { canDelete, formatDuration, isPlayableVideo, relativeTime, type CardMedia, type CardPost } from "@/lib/feed-model";
|
||||
import { GrowButton } from "./Buttons";
|
||||
import { GrowButton, SweepButton } from "./Buttons";
|
||||
import { HexAvatar } from "./HexAvatar";
|
||||
import { PlayIcon, PostMenu } from "./PostCard";
|
||||
import { VideoPlayer } from "./VideoPlayer";
|
||||
@@ -438,7 +438,7 @@ export function MobileFeed(p: FeedViewProps) {
|
||||
{p.status === "error" ? (
|
||||
<section className="slide slide-message is-cur" data-index={0} role="alert">
|
||||
<p>The feed did not load.</p>
|
||||
<button type="button" onClick={p.onRetry}>Try again</button>
|
||||
<SweepButton label="Try again" onClick={p.onRetry} />
|
||||
</section>
|
||||
) : null}
|
||||
{p.status === "ready" && p.posts.length === 0 && !showLoad ? (
|
||||
@@ -457,7 +457,7 @@ export function MobileFeed(p: FeedViewProps) {
|
||||
{p.status === "ready" && p.loadMoreFailed ? (
|
||||
<section className="slide slide-message" data-index={slideCount} role="alert">
|
||||
<p>The feed did not load.</p>
|
||||
<button type="button" onClick={p.onRetry}>Try again</button>
|
||||
<SweepButton label="Try again" onClick={p.onRetry} />
|
||||
</section>
|
||||
) : null}
|
||||
{showLoad ? (
|
||||
|
||||
Reference in New Issue
Block a user