mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-05-06 13:58:43 +00:00
fix: default network chart period to 1d instead of 30d (#61)
* Initial plan * fix: change network chart default period from 30d to 1d Co-authored-by: hamster1963 <71394853+hamster1963@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: hamster1963 <71394853+hamster1963@users.noreply.github.com>
This commit is contained in:
@@ -126,7 +126,7 @@ export function NetworkChart({
|
|||||||
show: boolean;
|
show: boolean;
|
||||||
}) {
|
}) {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const [period, setPeriod] = React.useState<MonitorPeriod>("30d");
|
const [period, setPeriod] = React.useState<MonitorPeriod>("1d");
|
||||||
const { data: userData, isError: isLoginError } = useQuery({
|
const { data: userData, isError: isLoginError } = useQuery({
|
||||||
queryKey: ["login-user"],
|
queryKey: ["login-user"],
|
||||||
queryFn: () => fetchLoginUser(),
|
queryFn: () => fetchLoginUser(),
|
||||||
|
|||||||
Reference in New Issue
Block a user