mirror of
https://github.com/dylanbenzi/yellowbird.git
synced 2026-11-27 01:07:01 +00:00
flexbox update
This commit is contained in:
@@ -9,11 +9,11 @@ interface HomepageModuleProps {
|
||||
|
||||
const HomepageModule = ({ title, children }: HomepageModuleProps) => {
|
||||
return (
|
||||
<div className="h-full bg-neutral-800 rounded-lg">
|
||||
<div className="flex flex-col 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>
|
||||
</div>
|
||||
<div className="h-3/4 w-full">{children}</div>
|
||||
<div className="flex-grow w-full overflow-hidden">{children}</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
import { heatmapData, portfolioData } from "@/app/MockData/MockData";
|
||||
import { heatmapData, newsData, portfolioData } from "@/app/MockData/MockData";
|
||||
import HomepageModule from "./HomepageModuleCard";
|
||||
import PortfolioChart from "../charts/PortfolioChart";
|
||||
import MarketHeatmap from "../charts/MarketHeatmap";
|
||||
import { Button } from "../ui/button";
|
||||
import { ArrowRight } from "lucide-react";
|
||||
import { NewsTable } from "../charts/news/NewsTable";
|
||||
import { newsColumns } from "../charts/news/newsColumns";
|
||||
|
||||
export const PortfolioModule = () => {
|
||||
return (
|
||||
@@ -25,7 +27,11 @@ export const PortfolioModule = () => {
|
||||
};
|
||||
|
||||
export const NewsModule = () => {
|
||||
return <HomepageModule title="News"></HomepageModule>;
|
||||
return (
|
||||
<HomepageModule title="News">
|
||||
<NewsTable columns={newsColumns} data={newsData} />
|
||||
</HomepageModule>
|
||||
);
|
||||
};
|
||||
|
||||
export const HeatmapModule = () => {
|
||||
|
||||
Reference in New Issue
Block a user