mirror of
https://github.com/dylanbenzi/yellowbird.git
synced 2026-11-27 01:07:01 +00:00
chart update
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user