mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Merge branch 'dev' of https://github.com/umami-software/umami into dev
Some checks are pending
Node.js CI / build (postgresql, 18.18, 10) (push) Waiting to run
Some checks are pending
Node.js CI / build (postgresql, 18.18, 10) (push) Waiting to run
# Conflicts: # prisma/schema.prisma
This commit is contained in:
commit
d51f0641a6
3 changed files with 2 additions and 3 deletions
|
|
@ -6,7 +6,6 @@ generator client {
|
|||
|
||||
datasource db {
|
||||
provider = "postgresql"
|
||||
relationMode = "prisma"
|
||||
}
|
||||
|
||||
model User {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ export function TeamsHeader({
|
|||
return (
|
||||
<PageHeader title={formatMessage(labels.teams)}>
|
||||
<Row gap="3">
|
||||
{allowJoin && user.role !== ROLES.viewOnly && <TeamsJoinButton />}
|
||||
{allowJoin && <TeamsJoinButton />}
|
||||
{allowCreate && user.role !== ROLES.viewOnly && <TeamsAddButton />}
|
||||
</Row>
|
||||
</PageHeader>
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ export function Revenue({ websiteId, startDate, endDate, unit }: RevenueProps) {
|
|||
metric={formatMessage(labels.revenue)}
|
||||
data={data?.country.map(({ name, value }: { name: string; value: number }) => ({
|
||||
label: name,
|
||||
count: value,
|
||||
count: Number(value),
|
||||
percent: (value / data?.total.sum) * 100,
|
||||
}))}
|
||||
currency={currency}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue