feat: use dialog instead of page

This commit is contained in:
email
2022-03-20 23:53:50 +08:00
parent 2b5ee78397
commit da1ccabd1e
15 changed files with 190 additions and 260 deletions

View File

@ -76,7 +76,7 @@ const UsageHeatMap: React.FC<Props> = () => {
locationService.setFromAndToQuery(0, 0);
setCurrentStat(null);
} else if (item.count > 0) {
if (!["/", "/trash"].includes(locationService.getState().pathname)) {
if (!["/"].includes(locationService.getState().pathname)) {
locationService.setPathname("/");
}
locationService.setFromAndToQuery(item.timestamp, item.timestamp + DAILY_TIMESTAMP);