Skip to content

Commit

Permalink
refactor: prepare react 18 upgrade - batch #6 (#3746)
Browse files Browse the repository at this point in the history
  • Loading branch information
neatbyte-vnobis committed Dec 6, 2023
1 parent 16376d0 commit c26dde0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/app-admin-auth0/src/Auth0.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export interface Auth0Props {
children?: React.ReactNode;
}

export const Auth0: React.FC<Auth0Props> = props => {
export const Auth0 = (props: Auth0Props) => {
const LoginScreenPlugin = createLoginScreenPlugin(props);
return (
<Fragment>
Expand Down
2 changes: 1 addition & 1 deletion packages/app-admin-auth0/src/components/LoginLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Elevation } from "@webiny/ui/Elevation";
import { LoginContent, LogoWrapper, Wrapper, InnerContent } from "./StyledComponents";
import { makeComposable } from "@webiny/app-serverless-cms";

export const LoginLayout: React.FC = makeComposable("LoginLayout", ({ children }) => (
export const LoginLayout = makeComposable("LoginLayout", ({ children }) => (
<Wrapper>
<LogoWrapper>
<Logo />
Expand Down
2 changes: 1 addition & 1 deletion packages/app-admin-auth0/src/createAuthentication.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const createAuthentication = ({
};
};

const Authentication: React.FC<AuthenticationProps> = ({ getIdentityData, children }) => {
const Authentication = ({ getIdentityData, children }: AuthenticationProps) => {
const { isAuthenticated, isLoading, getIdTokenClaims, getAccessTokenSilently, logout } =
useAuth0();

Expand Down
4 changes: 2 additions & 2 deletions packages/app-admin-auth0/src/modules/userMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import { SignOut } from "~/modules/userMenu/signOut";
import { UserImage } from "~/modules/userMenu/userImage";
import { ExitTenant } from "./exitTenant";

const UserImageHOC = (): React.FC => {
const UserImageHOC = () => {
return function UserImageHOC() {
return <UserImage />;
};
};

export const UserMenuModule: React.FC = () => {
export const UserMenuModule = () => {
return (
<Fragment>
<Compose component={UserMenuHandleRenderer} with={UserImageHOC} />
Expand Down

0 comments on commit c26dde0

Please sign in to comment.