mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Compare commits
3 commits
b45971da33
...
94321192b8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
94321192b8 | ||
|
|
ffa97d34e2 | ||
|
|
bc737268b6 |
3 changed files with 2 additions and 3 deletions
|
|
@ -7,7 +7,6 @@ generator client {
|
|||
datasource db {
|
||||
provider = "postgresql"
|
||||
url = env("DATABASE_URL")
|
||||
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