Skip to content

Commit 296281d

Browse files
committed
Format
1 parent 950ac50 commit 296281d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

site/src/components/PaginationWidget/PaginationWidget.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export const PaginationWidget = ({
124124
const firstPageActive = activePage === 1 && numPages !== 0
125125
const lastPageActive = activePage === numPages && numPages !== 0
126126
const theme = useTheme()
127-
const isMobile = useMediaQuery(theme.breakpoints.down('sm'))
127+
const isMobile = useMediaQuery(theme.breakpoints.down("sm"))
128128
const styles = useStyles()
129129

130130
// No need to display any pagination if we know the number of pages is 1
@@ -145,9 +145,7 @@ export const PaginationWidget = ({
145145
</Button>
146146
<Maybe condition={numPages > 0}>
147147
<ChooseOne>
148-
<Cond
149-
condition={isMobile}
150-
>
148+
<Cond condition={isMobile}>
151149
<PageButton
152150
activePage={activePage}
153151
page={activePage}

site/src/pages/WorkspacesPage/WorkspacesPage.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ describe("WorkspacesPage", () => {
4747
const nextPage = await screen.findByRole("button", { name: "Next page" })
4848
expect(nextPage).toBeEnabled()
4949
await user.click(nextPage)
50-
const pageButtons = await container.querySelectorAll(`button[name="Page button"]`)
50+
const pageButtons = await container.querySelectorAll(
51+
`button[name="Page button"]`,
52+
)
5153
expect(pageButtons.length).toBe(2)
5254
})
5355
})

site/src/testHelpers/entities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ export const MockWorkspaceRequest: TypesGen.CreateWorkspaceRequest = {
507507
}
508508

509509
export const MockWorkspaceCountResponse: TypesGen.WorkspaceCountResponse = {
510-
count: 26 // just over 1 page
510+
count: 26, // just over 1 page
511511
}
512512

513513
export const MockUserAgent: Types.UserAgent = {

0 commit comments

Comments
 (0)