Skip to content

feat: condition Audit log on licensing #3685

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Aug 25, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Format, lower timeout
  • Loading branch information
presleyp committed Aug 25, 2022
commit 9505faa1f557d696c37a5e044f1418ada8beac7c
6 changes: 3 additions & 3 deletions site/src/components/Navbar/Navbar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe("Navbar", () => {
const link = screen.getByText(Language.audit)
expect(link).toBeDefined()
},
{ timeout: 2500 },
{ timeout: 2000 },
)
})

Expand All @@ -40,7 +40,7 @@ describe("Navbar", () => {
const link = screen.queryByText(Language.audit)
expect(link).toBe(null)
},
{ timeout: 2500 },
{ timeout: 2000 },
)
})

Expand All @@ -63,7 +63,7 @@ describe("Navbar", () => {
const link = screen.queryByText(Language.audit)
expect(link).toBe(null)
},
{ timeout: 2500 },
{ timeout: 2000 },
)
})
})
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FC } from "react"
import { Navigate } from "react-router"

export interface RequirePermissionProps {
export interface RequirePermissionProps {
children: JSX.Element
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would PropsWithChildren help here? reference

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried using it here and got a TS error, not sure why!

isFeatureVisible: boolean
}
Expand Down