Skip to content

Commit

Permalink
na: adjust socket error messaging (#864)
Browse files Browse the repository at this point in the history
* less aggressively bad

* wording tweak
  • Loading branch information
jaspercroome authored Apr 3, 2024
1 parent d35bc43 commit 015ab60
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AnimatePresence, motion } from 'framer-motion';
import { useBiddingState } from '../store';
import { WarningIcon } from './icons/warning-icon';
import { ClockIcon } from './icons/clock-icon';

export function SocketError() {
const { hasSocketError, auctionStatus } = useBiddingState();
Expand All @@ -13,20 +13,18 @@ export function SocketError() {
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
transition={{ duration: 0.2 }}
className="flex items-start gap-4 rounded bg-warning-bg p-4 text-warning-text"
className="flex items-start gap-4 rounded bg-gb-green-100 p-4 text-warning-text"
>
<div className="h-6 w-6">
<WarningIcon />
<ClockIcon />
</div>

<div className="flex flex-col gap-3" role="alert">
<p className="m-0">
<b>Live auction updates suspended</b>
</p>
<p>
We're having trouble fetching live updates for this
auctions. Updates will load every 30 seconds until
the issue is resolved.
<b>
Auction updating every 30 seconds - refresh the
page for the latest updates
</b>
</p>
</div>
</motion.div>
Expand Down

0 comments on commit 015ab60

Please sign in to comment.