Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d1bae99

Browse files
committed
fmt
1 parent 50260c3 commit d1bae99

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

site/src/components/DeploymentBanner/DeploymentBannerView.stories.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { Story } from "@storybook/react"
22
import { MockDeploymentStats } from "testHelpers/entities"
3-
import { DeploymentBannerView, DeploymentBannerViewProps } from "./DeploymentBannerView"
3+
import {
4+
DeploymentBannerView,
5+
DeploymentBannerViewProps,
6+
} from "./DeploymentBannerView"
47

58
export default {
69
title: "components/DeploymentBannerView",

site/src/components/DeploymentBanner/DeploymentBannerView.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const DeploymentBannerView: FC<DeploymentBannerViewProps> = ({
7474
return "just now"
7575
}
7676
return dayjs().to(dayjs(stats.collected_at))
77-
// eslint-disable-next-line react-hooks/exhaustive-deps -- We want this to periodically update!
77+
// eslint-disable-next-line react-hooks/exhaustive-deps -- We want this to periodically update!
7878
}, [timeUntilRefresh, stats])
7979

8080
return (
@@ -145,7 +145,7 @@ export const DeploymentBannerView: FC<DeploymentBannerViewProps> = ({
145145
>
146146
<div className={styles.value}>
147147
<LatencyIcon />
148-
{displayLatency > 0 ? displayLatency?.toFixed(2) + "ms" : "-"}
148+
{displayLatency > 0 ? displayLatency?.toFixed(2) + " ms" : "-"}
149149
</div>
150150
</Tooltip>
151151
</div>
@@ -183,7 +183,7 @@ export const DeploymentBannerView: FC<DeploymentBannerViewProps> = ({
183183
</div>
184184
</div>
185185
<div className={styles.refresh}>
186-
<Tooltip title="The last time stats were aggregated">
186+
<Tooltip title="The last time stats were aggregated. Workspaces report statistics periodically, so it may take a bit for these to update!">
187187
<div className={styles.value}>
188188
<CollectedIcon />
189189
{lastAggregated}

site/src/xServices/auth/authXService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const permissionsToCheck = {
7979
object: {
8080
resource_type: "deployment_stats",
8181
},
82-
action: "read",
82+
action: "read",
8383
},
8484
} as const
8585

site/src/xServices/deploymentStats/deploymentStatsMachine.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export const deploymentStatsMachine = createMachine(
1818
data: DeploymentStats
1919
}
2020
},
21-
2221
},
2322
tsTypes: {} as import("./deploymentStatsMachine.typegen").Typegen0,
2423
initial: "stats",

0 commit comments

Comments
 (0)