mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-07 13:38:15 -08:00
fix: rewind ui bug
This commit is contained in:
parent
62267652ba
commit
6e7b4e0522
1 changed files with 4 additions and 2 deletions
|
|
@ -46,8 +46,10 @@ export async function clientLoader({ request }: LoaderFunctionArgs) {
|
|||
|
||||
export default function RewindPage() {
|
||||
const currentParams = new URLSearchParams(location.search);
|
||||
let year = parseInt(currentParams.get("year") || "0");
|
||||
let month = parseInt(currentParams.get("month") || "0");
|
||||
let year =
|
||||
parseInt(currentParams.get("year") || "0") || getRewindParams().year;
|
||||
let month =
|
||||
parseInt(currentParams.get("month") || "0") || getRewindParams().month;
|
||||
const navigate = useNavigate();
|
||||
const [showTime, setShowTime] = useState(false);
|
||||
const { stats: stats } = useLoaderData<{ stats: RewindStats }>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue