Skip to content

Commit

Permalink
remove fallback for ia writer mono
Browse files Browse the repository at this point in the history
Signed-off-by: Vu Van Dung <[email protected]>
  • Loading branch information
joulev committed Dec 20, 2023
1 parent 3a6e32b commit cf0868f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const mono = localFont({
display: "swap",
declarations: [{ prop: "size-adjust", value: "90%" }],
variable: "--mono",
adjustFontFallback: false,
});

function VersionFooter() {
Expand Down
12 changes: 5 additions & 7 deletions src/components/ui/tweet.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type EnrichedTweet, enrichTweet, formatNumber } from "react-tweet";
import { type EnrichedTweet, enrichTweet } from "react-tweet";
import { getTweet } from "react-tweet/api";

import { ExternalLink, Heart, MessageCircle, Reply, Twitter } from "~/components/icons";
Expand Down Expand Up @@ -124,15 +124,13 @@ function TweetBody({ tweet }: { tweet: EnrichedTweet }) {
}

function TweetActions({ tweet }: { tweet: EnrichedTweet }) {
const favoriteCount = formatNumber(tweet.favorite_count);
const commentCount = formatNumber(tweet.conversation_count);
return (
<div className="flex flex-row flex-wrap gap-3">
<LinkButton href={tweet.like_url} variants={{ size: "sm" }}>
<Heart /> {favoriteCount}
<LinkButton href={tweet.like_url} variants={{ size: "icon-sm" }}>
<Heart />
</LinkButton>
<LinkButton href={tweet.reply_url} variants={{ size: "sm" }}>
<MessageCircle /> {commentCount}
<LinkButton href={tweet.reply_url} variants={{ size: "icon-sm" }}>
<MessageCircle />
</LinkButton>
<LinkButton href={tweet.url} variants={{ size: "sm" }}>
<ExternalLink /> Go to tweet
Expand Down

0 comments on commit cf0868f

Please sign in to comment.