Skip to content

Commit

Permalink
fix: fix BarChart tooltip background
Browse files Browse the repository at this point in the history
  • Loading branch information
pradel committed Mar 23, 2024
1 parent 256ad69 commit 3e8d03d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function RootLayout({
children: React.ReactNode;
}>) {
return (
<html suppressHydrationWarning lang="en">
<html lang="en">
<body
suppressHydrationWarning
className={`${font.variable} font-sans antialiased`}
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/BarChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const BarChart = ({
<Tooltip
cursor={{ fill: "var(--gray-11)", opacity: "0.10" }}
content={({ label, payload }) => (
<div className="min-w-[150px] rounded-2 bg-[var(--color-page-background)] py-3">
<div className="min-w-[150px] rounded-2 bg-[var(--color-background)] py-3">
<div className="px-4">
<Text as="div" size="2" weight="medium">
{label}
Expand Down
3 changes: 2 additions & 1 deletion src/lib/twitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ export const sendTweet = async ({
)
: [];

await twitterClient.v2.tweet({
const data = await twitterClient.v2.tweet({
text: message,
media: { media_ids: mediaIds },
});
console.log(`Tweet sent: id ${data.data.id}`);
};

0 comments on commit 3e8d03d

Please sign in to comment.