chart update

This commit is contained in:
2024-02-27 16:11:49 -05:00
parent db680b991e
commit 084a5050b7
2 changed files with 13 additions and 5 deletions
+8
View File
@@ -7,6 +7,14 @@ function PortfolioChart({ data }: any) {
return (
<ResponsiveLine
data={data}
theme={{
"text": {
"fontSize": 11,
"fill": "#ffffff",
"outlineWidth": 0,
"outlineColor": "transparent",
},
}}
margin={{ top: 50, right: 110, bottom: 50, left: 60 }}
xScale={{ type: "point" }}
yScale={{
@@ -9,14 +9,14 @@ interface HomepageModuleProps {
const HomepageModule = ({ title, children }: HomepageModuleProps) => {
return (
<div className="h-full bg-popover-foreground rounded-lg">
<div className="flex flex-row justify-between px-4 py-4 pb-0">
<div className="flex items-center h-10 text-lg px-2">{title}</div>
<Button variant="ghost" size="sm" className="flex items-center">
<div className="h-full bg-neutral-800 rounded-lg">
<div className="flex justify-between px-2 py-2 pb-0">
<div className="flex items-center text-lg px-2">{title}</div>
<Button variant="linkNoUnderline" size="sm" className="text-white">
<Settings2Icon size={20} />
</Button>
</div>
<div className="h-full w-full">{children}</div>
<div className="h-3/4 w-full">{children}</div>
</div>
);
};