diff options
Diffstat (limited to 'server/sonar-web/src/main/js/app')
6 files changed, 6 insertions, 16 deletions
diff --git a/server/sonar-web/src/main/js/app/components/admin/withAdminPagesOutletContext.tsx b/server/sonar-web/src/main/js/app/components/admin/withAdminPagesOutletContext.tsx index b5d3da6ff84..3de71cd7aa0 100644 --- a/server/sonar-web/src/main/js/app/components/admin/withAdminPagesOutletContext.tsx +++ b/server/sonar-web/src/main/js/app/components/admin/withAdminPagesOutletContext.tsx @@ -22,9 +22,7 @@ import { useOutletContext } from 'react-router-dom'; import { AdminPagesContext } from '../../../types/admin'; export default function withAdminPagesOutletContext( - WrappedComponent: React.ComponentType< - React.PropsWithChildren<React.PropsWithChildren<AdminPagesContext>> - >, + WrappedComponent: React.ComponentType<React.PropsWithChildren<AdminPagesContext>>, ) { return function WithAdminPagesOutletContext() { const { adminPages } = useOutletContext<AdminPagesContext>(); diff --git a/server/sonar-web/src/main/js/app/components/app-state/withAppStateContext.tsx b/server/sonar-web/src/main/js/app/components/app-state/withAppStateContext.tsx index 5a0b13d06af..51cd7d808a4 100644 --- a/server/sonar-web/src/main/js/app/components/app-state/withAppStateContext.tsx +++ b/server/sonar-web/src/main/js/app/components/app-state/withAppStateContext.tsx @@ -27,9 +27,7 @@ export interface WithAppStateContextProps { } export default function withAppStateContext<P>( - WrappedComponent: React.ComponentType< - React.PropsWithChildren<React.PropsWithChildren<P & WithAppStateContextProps>> - >, + WrappedComponent: React.ComponentType<React.PropsWithChildren<P & WithAppStateContextProps>>, ) { return class WithAppStateContext extends React.PureComponent< Omit<P, keyof WithAppStateContextProps> diff --git a/server/sonar-web/src/main/js/app/components/available-features/withAvailableFeatures.tsx b/server/sonar-web/src/main/js/app/components/available-features/withAvailableFeatures.tsx index 5a25ac62230..278938b48ad 100644 --- a/server/sonar-web/src/main/js/app/components/available-features/withAvailableFeatures.tsx +++ b/server/sonar-web/src/main/js/app/components/available-features/withAvailableFeatures.tsx @@ -27,9 +27,7 @@ export interface WithAvailableFeaturesProps { } export default function withAvailableFeatures<P>( - WrappedComponent: React.ComponentType< - React.PropsWithChildren<React.PropsWithChildren<P & WithAvailableFeaturesProps>> - >, + WrappedComponent: React.ComponentType<React.PropsWithChildren<P & WithAvailableFeaturesProps>>, ) { return class WithAvailableFeatures extends React.PureComponent< Omit<P, keyof WithAvailableFeaturesProps> diff --git a/server/sonar-web/src/main/js/app/components/componentContext/withComponentContext.tsx b/server/sonar-web/src/main/js/app/components/componentContext/withComponentContext.tsx index 122706e9f63..eeab47a144d 100644 --- a/server/sonar-web/src/main/js/app/components/componentContext/withComponentContext.tsx +++ b/server/sonar-web/src/main/js/app/components/componentContext/withComponentContext.tsx @@ -23,7 +23,7 @@ import { ComponentContextShape } from '../../../types/component'; import { ComponentContext } from './ComponentContext'; export default function withComponentContext<P extends Partial<ComponentContextShape>>( - WrappedComponent: React.ComponentType<React.PropsWithChildren<React.PropsWithChildren<P>>>, + WrappedComponent: React.ComponentType<React.PropsWithChildren<P>>, ) { return class WithComponentContext extends React.PureComponent< Omit<P, keyof ComponentContextShape> diff --git a/server/sonar-web/src/main/js/app/components/languages/withLanguagesContext.tsx b/server/sonar-web/src/main/js/app/components/languages/withLanguagesContext.tsx index 6b2324f4d24..fd562c9e388 100644 --- a/server/sonar-web/src/main/js/app/components/languages/withLanguagesContext.tsx +++ b/server/sonar-web/src/main/js/app/components/languages/withLanguagesContext.tsx @@ -27,9 +27,7 @@ export interface WithLanguagesContextProps { } export default function withLanguagesContext<P>( - WrappedComponent: React.ComponentType< - React.PropsWithChildren<React.PropsWithChildren<P & WithLanguagesContextProps>> - >, + WrappedComponent: React.ComponentType<React.PropsWithChildren<P & WithLanguagesContextProps>>, ) { return class WithLanguagesContext extends React.PureComponent< Omit<P, keyof WithLanguagesContextProps> diff --git a/server/sonar-web/src/main/js/app/components/metrics/withMetricsContext.tsx b/server/sonar-web/src/main/js/app/components/metrics/withMetricsContext.tsx index 7c069e4ac36..496cecb8ffa 100644 --- a/server/sonar-web/src/main/js/app/components/metrics/withMetricsContext.tsx +++ b/server/sonar-web/src/main/js/app/components/metrics/withMetricsContext.tsx @@ -27,9 +27,7 @@ export interface WithMetricsContextProps { } export default function withMetricsContext<P>( - WrappedComponent: React.ComponentType< - React.PropsWithChildren<React.PropsWithChildren<P & WithMetricsContextProps>> - >, + WrappedComponent: React.ComponentType<React.PropsWithChildren<P & WithMetricsContextProps>>, ) { return class WithMetricsContext extends React.PureComponent< Omit<P, keyof WithMetricsContextProps> |