Skip to content

Commit

Permalink
Change "Refresh now" text to button for better actionability (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
teejae committed Jul 26, 2021
1 parent 1347e4c commit b34927a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { observer } from "mobx-react-lite";
import moment from "moment";
import React from "react";
import { Alert } from "react-bootstrap";
import { SmallButton } from "./design/Button";
import { Core } from "../state/core";
import { Link } from "./design/Link";

export interface StatusProps {
core: Core;
Expand All @@ -25,13 +25,13 @@ export const Status = observer((props: StatusProps) => {
{props.core.refreshing ? (
"Refreshing..."
) : (
<Link
<SmallButton
onClick={() => {
props.core.triggerBackgroundRefresh();
}}
>
Refresh now
</Link>
Refresh
</SmallButton>
)}
</div>
);
Expand Down

0 comments on commit b34927a

Please sign in to comment.