Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/#168 - 스토리북 빌드되지 않는 문제 수정 #169

Merged
merged 9 commits into from
Nov 14, 2024
Prev Previous commit
Next Next commit
✨ feat: trading chart 기본 테마 변경
  • Loading branch information
baegyeong committed Nov 14, 2024
commit 9bbec3306f822df6cb00913b3861643432f5a1e7
4 changes: 2 additions & 2 deletions packages/frontend/src/pages/stock-detail/TradingChart.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { useRef } from 'react';
import { useChart } from './hooks/useChart';
import { useChartResize } from './hooks/useChartResize';
import { ChartTheme, darkTheme } from '@/styles/theme';
import { ChartTheme, lightTheme } from '@/styles/theme';

interface TradingChartProps {
theme?: ChartTheme;
}

export const TradingChart = ({ theme = darkTheme }: TradingChartProps) => {
export const TradingChart = ({ theme = lightTheme }: TradingChartProps) => {
const containerRef = useRef<HTMLDivElement>(null);
const chart = useChart({ containerRef, theme });