File tree 3 files changed +6
-6
lines changed 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ export const PaginationWidget = ({
124
124
const firstPageActive = activePage === 1 && numPages !== 0
125
125
const lastPageActive = activePage === numPages && numPages !== 0
126
126
const theme = useTheme ( )
127
- const isMobile = useMediaQuery ( theme . breakpoints . down ( 'sm' ) )
127
+ const isMobile = useMediaQuery ( theme . breakpoints . down ( "sm" ) )
128
128
const styles = useStyles ( )
129
129
130
130
// No need to display any pagination if we know the number of pages is 1
@@ -145,9 +145,7 @@ export const PaginationWidget = ({
145
145
</ Button >
146
146
< Maybe condition = { numPages > 0 } >
147
147
< ChooseOne >
148
- < Cond
149
- condition = { isMobile }
150
- >
148
+ < Cond condition = { isMobile } >
151
149
< PageButton
152
150
activePage = { activePage }
153
151
page = { activePage }
Original file line number Diff line number Diff line change @@ -47,7 +47,9 @@ describe("WorkspacesPage", () => {
47
47
const nextPage = await screen . findByRole ( "button" , { name : "Next page" } )
48
48
expect ( nextPage ) . toBeEnabled ( )
49
49
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
+ )
51
53
expect ( pageButtons . length ) . toBe ( 2 )
52
54
} )
53
55
} )
Original file line number Diff line number Diff line change @@ -507,7 +507,7 @@ export const MockWorkspaceRequest: TypesGen.CreateWorkspaceRequest = {
507
507
}
508
508
509
509
export const MockWorkspaceCountResponse : TypesGen . WorkspaceCountResponse = {
510
- count : 26 // just over 1 page
510
+ count : 26 , // just over 1 page
511
511
}
512
512
513
513
export const MockUserAgent : Types . UserAgent = {
You can’t perform that action at this time.
0 commit comments