mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
fix(frontend): use sensible default values for custom time selector
This commit is contained in:
parent
79b375ca08
commit
4758338e99
5 changed files with 5 additions and 5 deletions
|
|
@ -27,7 +27,7 @@ export const ReportListens: React.FC = () => {
|
||||||
|
|
||||||
const [timeOptions, setTimeOptions] = useState<TimeOptions>({
|
const [timeOptions, setTimeOptions] = useState<TimeOptions>({
|
||||||
timePreset: TimePreset.LAST_7_DAYS,
|
timePreset: TimePreset.LAST_7_DAYS,
|
||||||
customTimeStart: new Date(0),
|
customTimeStart: new Date("2020"),
|
||||||
customTimeEnd: new Date(),
|
customTimeEnd: new Date(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ export const ReportTopAlbums: React.FC = () => {
|
||||||
|
|
||||||
const [timeOptions, setTimeOptions] = useState<TimeOptions>({
|
const [timeOptions, setTimeOptions] = useState<TimeOptions>({
|
||||||
timePreset: TimePreset.LAST_90_DAYS,
|
timePreset: TimePreset.LAST_90_DAYS,
|
||||||
customTimeStart: new Date(0),
|
customTimeStart: new Date("2020"),
|
||||||
customTimeEnd: new Date(),
|
customTimeEnd: new Date(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ export const ReportTopArtists: React.FC = () => {
|
||||||
|
|
||||||
const [timeOptions, setTimeOptions] = useState<TimeOptions>({
|
const [timeOptions, setTimeOptions] = useState<TimeOptions>({
|
||||||
timePreset: TimePreset.LAST_90_DAYS,
|
timePreset: TimePreset.LAST_90_DAYS,
|
||||||
customTimeStart: new Date(0),
|
customTimeStart: new Date("2020"),
|
||||||
customTimeEnd: new Date(),
|
customTimeEnd: new Date(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ export const ReportTopGenres: React.FC = () => {
|
||||||
|
|
||||||
const [timeOptions, setTimeOptions] = useState<TimeOptions>({
|
const [timeOptions, setTimeOptions] = useState<TimeOptions>({
|
||||||
timePreset: TimePreset.LAST_90_DAYS,
|
timePreset: TimePreset.LAST_90_DAYS,
|
||||||
customTimeStart: new Date(0),
|
customTimeStart: new Date("2020"),
|
||||||
customTimeEnd: new Date(),
|
customTimeEnd: new Date(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ export const ReportTopTracks: React.FC = () => {
|
||||||
|
|
||||||
const [timeOptions, setTimeOptions] = useState<TimeOptions>({
|
const [timeOptions, setTimeOptions] = useState<TimeOptions>({
|
||||||
timePreset: TimePreset.LAST_90_DAYS,
|
timePreset: TimePreset.LAST_90_DAYS,
|
||||||
customTimeStart: new Date(0),
|
customTimeStart: new Date("2020"),
|
||||||
customTimeEnd: new Date(),
|
customTimeEnd: new Date(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue