|
|
|
@ -14,7 +14,7 @@ const Detail = () => {
|
|
|
|
const { code } = useParams();
|
|
|
|
const { code } = useParams();
|
|
|
|
const [data, setData] = useState(null);
|
|
|
|
const [data, setData] = useState(null);
|
|
|
|
const [loading, setLoading] = useState(true);
|
|
|
|
const [loading, setLoading] = useState(true);
|
|
|
|
const [currentPeriod, setCurrentPeriod] = useState('1H');
|
|
|
|
const [currentPeriod, setCurrentPeriod] = useState('1D');
|
|
|
|
const [currentIndicator, setCurrentIndicator] = useState('MA');
|
|
|
|
const [currentIndicator, setCurrentIndicator] = useState('MA');
|
|
|
|
const chartRef = useRef(null);
|
|
|
|
const chartRef = useRef(null);
|
|
|
|
const chartInstance = useRef(null);
|
|
|
|
const chartInstance = useRef(null);
|
|
|
|
|