Skip to content

Commit

Permalink
πŸ› fix: lottie μ• λ‹ˆλ©”μ΄μ…˜ λ°˜μ‘ν˜• 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
baegyeong committed Dec 5, 2024
1 parent 7f0caea commit a729be4
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions packages/frontend/src/pages/stock-detail/StockMetricsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface RealTimeStockData {
volume: number;
}

const StockMetricsPanel = ({
export const StockMetricsPanel = ({
eps,
high52w,
low52w,
Expand Down Expand Up @@ -60,11 +60,10 @@ const StockMetricsPanel = ({
return (
<article className="flex flex-1 flex-col gap-10 rounded-md bg-white p-6 shadow">
{!price || !change || !volume ? (
<section className="grid w-9/12 grid-cols-2 grid-rows-2">
<Lottie animationData={skeleton} play className="w-64" />
<Lottie animationData={skeleton} play className="w-64" />
<Lottie animationData={skeleton} play className="w-64" />
<Lottie animationData={skeleton} play className="w-64" />
<section className="grid w-9/12 lg:grid-cols-2 lg:grid-rows-2">
{Array.from({ length: 4 }, () => (
<Lottie animationData={skeleton} play className="w-64" />
))}
</section>
) : (
Object.values(metricsData).map((section) => (
Expand All @@ -86,5 +85,3 @@ const StockMetricsPanel = ({
</article>
);
};

export default StockMetricsPanel;

0 comments on commit a729be4

Please sign in to comment.