mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
refactor(site): hide unavailable usage information (#13341)
This commit is contained in:
@ -76,8 +76,8 @@ export const Loaded: Story = {
|
||||
display_name: "JetBrains",
|
||||
slug: "jetbrains",
|
||||
icon: "/icon/intellij.svg",
|
||||
seconds: 0,
|
||||
times_used: 0,
|
||||
seconds: 2013400,
|
||||
times_used: 20,
|
||||
},
|
||||
{
|
||||
template_ids: ["0d286645-29aa-4eaf-9b52-cc5d2740c90b"],
|
||||
|
@ -504,6 +504,7 @@ const TemplateUsagePanel: FC<TemplateUsagePanelProps> = ({
|
||||
}}
|
||||
>
|
||||
{formatTime(usage.seconds)}
|
||||
{usage.times_used > 0 && (
|
||||
<span
|
||||
css={{
|
||||
fontSize: 12,
|
||||
@ -513,6 +514,7 @@ const TemplateUsagePanel: FC<TemplateUsagePanelProps> = ({
|
||||
Opened {usage.times_used.toLocaleString()}{" "}
|
||||
{usage.times_used === 1 ? "time" : "times"}
|
||||
</span>
|
||||
)}
|
||||
</Stack>
|
||||
</div>
|
||||
);
|
||||
|
Reference in New Issue
Block a user