终端与时区分组逻辑微调
This commit is contained in:
@@ -31,6 +31,7 @@ import {
|
||||
getSignalState,
|
||||
resolveTradingRegionKey,
|
||||
TRADING_REGIONS,
|
||||
detectLocalRegion,
|
||||
} from "@/components/dashboard/scan-terminal/continent-grouping";
|
||||
import { MobileCityCard } from "@/components/dashboard/scan-terminal/MobileCityCard";
|
||||
import { MobileRegionTabs } from "@/components/dashboard/scan-terminal/MobileRegionTabs";
|
||||
@@ -470,6 +471,10 @@ function PolyWeatherTerminal({
|
||||
const [activeNavKey, setActiveNavKey] = useState<string>("contracts");
|
||||
const [selectedRegionKey, setSelectedRegionKey] = useState<string>("east_asia");
|
||||
|
||||
useEffect(() => {
|
||||
setSelectedRegionKey(detectLocalRegion());
|
||||
}, []);
|
||||
|
||||
const NAV_ITEMS = [
|
||||
{ key: "contracts", Icon: Table2, labelEn: "Contracts", labelZh: "天气合约" },
|
||||
{ key: "markets", Icon: Activity, labelEn: "Markets", labelZh: "市场概览" },
|
||||
|
||||
Reference in New Issue
Block a user