mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 17:54:23 +01:00
wip: zen
This commit is contained in:
@@ -145,8 +145,8 @@ function MemberRow(props: { member: any; workspaceID: string; actorID: string; a
|
|||||||
month: "long",
|
month: "long",
|
||||||
timeZone: "UTC",
|
timeZone: "UTC",
|
||||||
})
|
})
|
||||||
if (current !== lastUsed) return 0
|
const usage = current === lastUsed ? (props.member.monthlyUsage ?? 0) : 0
|
||||||
return ((props.member.monthlyUsage ?? 0) / 100000000).toFixed(2)
|
return (usage / 100000000).toFixed(2)
|
||||||
})()
|
})()
|
||||||
|
|
||||||
const limit = props.member.monthlyLimit ? `$${props.member.monthlyLimit}` : "no limit"
|
const limit = props.member.monthlyLimit ? `$${props.member.monthlyLimit}` : "no limit"
|
||||||
@@ -417,7 +417,7 @@ export function MemberSection() {
|
|||||||
<tr>
|
<tr>
|
||||||
<th>Email</th>
|
<th>Email</th>
|
||||||
<th>Role</th>
|
<th>Role</th>
|
||||||
<th>Limit</th>
|
<th>Month limit</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
<Show when={data()?.actorRole === "admin"}>
|
<Show when={data()?.actorRole === "admin"}>
|
||||||
<th></th>
|
<th></th>
|
||||||
|
|||||||
Reference in New Issue
Block a user