mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Updated color selection. Added loading to fetch hook.
This commit is contained in:
parent
5524d504f4
commit
569fcc7f0b
7 changed files with 47 additions and 27 deletions
|
|
@ -23,7 +23,7 @@ export default function WebsiteChart({
|
|||
const { startDate, endDate, unit, value, modified } = dateRange;
|
||||
const [timezone] = useTimezone();
|
||||
|
||||
const { data } = useFetch(
|
||||
const { data, loading } = useFetch(
|
||||
`/api/website/${websiteId}/pageviews`,
|
||||
{
|
||||
start_at: +startDate,
|
||||
|
|
@ -74,6 +74,7 @@ export default function WebsiteChart({
|
|||
data={{ pageviews, uniques }}
|
||||
unit={unit}
|
||||
records={getDateLength(startDate, endDate, unit)}
|
||||
loading={loading}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue