Skip to content

Commit 4f975b8

Browse files
committed
Undo PropsWithChildren, try lower timeout
1 parent a7d836b commit 4f975b8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

site/src/components/Navbar/Navbar.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe("Navbar", () => {
2727
const link = screen.getByText(Language.audit)
2828
expect(link).toBeDefined()
2929
},
30-
{ timeout: 5000 },
30+
{ timeout: 2500 },
3131
)
3232
})
3333

@@ -40,7 +40,7 @@ describe("Navbar", () => {
4040
const link = screen.queryByText(Language.audit)
4141
expect(link).toBe(null)
4242
},
43-
{ timeout: 5000 },
43+
{ timeout: 2500 },
4444
)
4545
})
4646

@@ -63,7 +63,7 @@ describe("Navbar", () => {
6363
const link = screen.queryByText(Language.audit)
6464
expect(link).toBe(null)
6565
},
66-
{ timeout: 5000 },
66+
{ timeout: 2500 },
6767
)
6868
})
6969
})

site/src/components/RequirePermission/RequirePermission.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { FC, PropsWithChildren } from "react"
1+
import { FC } from "react"
22
import { Navigate } from "react-router"
33

4-
export type RequirePermissionProps = PropsWithChildren<{
4+
export interface RequirePermissionProps {
55
children: JSX.Element
66
isFeatureVisible: boolean
7-
}>
7+
}
88

99
/**
1010
* Wraps routes that are available based on RBAC or licensing.

0 commit comments

Comments
 (0)