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

Skip to content

Commit 150571d

Browse files
committed
Import PropsWithChildren in a few components
1 parent a7d458f commit 150571d

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

site/src/__mocks__/react-markdown.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { FC } from "react"
1+
import { FC, PropsWithChildren } from "react"
22

3-
const ReactMarkdown: FC<React.PropsWithChildren<unknown>> = ({ children }) => {
3+
const ReactMarkdown: FC<PropsWithChildren<unknown>> = ({ children }) => {
44
return <div data-testid="markdown">{children}</div>
55
}
66

site/src/components/AppLink/AppLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface AppLinkProps {
1717
appIcon?: TypesGen.WorkspaceApp["icon"]
1818
}
1919

20-
export const AppLink: FC<React.PropsWithChildren<AppLinkProps>> = ({
20+
export const AppLink: FC<PropsWithChildren<AppLinkProps>> = ({
2121
userName,
2222
workspaceName,
2323
appName,

site/src/components/AuthAndFrame/AuthAndFrame.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface AuthAndFrameProps {
1313
/**
1414
* Wraps page in RequireAuth and renders it between Navbar and Footer
1515
*/
16-
export const AuthAndFrame: FC<React.PropsWithChildren<AuthAndFrameProps>> = ({ children }) => {
16+
export const AuthAndFrame: FC<PropsWithChildren<AuthAndFrameProps>> = ({ children }) => {
1717
const styles = useStyles()
1818
const xServices = useContext(XServiceContext)
1919

site/src/components/AvatarData/AvatarData.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export interface AvatarDataProps {
1818
avatar?: React.ReactNode
1919
}
2020

21-
export const AvatarData: FC<React.PropsWithChildren<AvatarDataProps>> = ({
21+
export const AvatarData: FC<PropsWithChildren<AvatarDataProps>> = ({
2222
title,
2323
subtitle,
2424
link,

site/src/components/BorderedMenu/BorderedMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export type BorderedMenuProps = Omit<PopoverProps, "variant"> & {
88
variant?: BorderedMenuVariant
99
}
1010

11-
export const BorderedMenu: FC<React.PropsWithChildren<BorderedMenuProps>> = ({
11+
export const BorderedMenu: FC<PropsWithChildren<BorderedMenuProps>> = ({
1212
children,
1313
variant,
1414
...rest

0 commit comments

Comments
 (0)