Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
deepessh committed Jul 10, 2024
1 parent faec892 commit ead5d5e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { MAX_TABLET_SCREEN_WIDTH, MIN_MOBILE_WIDTH } from './FormFields';
import { PreviousProject } from './PreviousProject';
import { Organization } from './Organization';
import { CredentialForm } from './CredentialForm';
import { RetunrSideComp } from './Return/RetunrSideComp';
import { ReturnSideComp } from './Return/ReturnSideComp';
import { CardProducts } from './Products';
import { ReturnCustomComp } from './Return/ReturnCustomComp';
import { ReturnNewCredential } from './Return/ReturnNewCredential';
Expand All @@ -32,7 +32,7 @@ const PreviousCredential = ({ setIsCreateNewCredential }) => {
const children = Array.isArray(props.children) ? props.children : [props.children];

children.forEach(({ props: childProps, type: childType }) => {
if (type === RetunrSideComp || type === ReturnCredentialDetails) {
if (type === ReturnSideComp || type === ReturnCredentialDetails) {
returnFields[childType] = childProps;
} else if (type === CardProducts) {
const { label, icon } = childProps;
Expand All @@ -44,7 +44,7 @@ const PreviousCredential = ({ setIsCreateNewCredential }) => {

});

const retunrSideComp = returnFields?.[RetunrSideComp];
const returnSideComp = returnFields?.[ReturnSideComp];
const returnCustomComp = returnFields?.[ReturnCustomComp];
const returnNewCredential = returnFields?.[ReturnNewCredential];

Expand Down Expand Up @@ -120,9 +120,9 @@ const PreviousCredential = ({ setIsCreateNewCredential }) => {
width: 100%;
}
`}>
{retunrSideComp && (
<RetunrSideComp
retunrSideComp={retunrSideComp}
{returnSideComp && (
<ReturnSideComp
returnSideComp={returnSideComp}
returnNewCredential={returnNewCredential}
returnCustomComp={returnCustomComp}
setIsCreateNewCredential={setIsCreateNewCredential}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { css } from "@emotion/react";

const ReturnNewCredential = ({ returnNewCredential, setIsCreateNewCredential, retunrSideComp }) => {
const ReturnNewCredential = ({ returnNewCredential, setIsCreateNewCredential, returnSideComp }) => {

return (
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { css } from "@emotion/react";
import { ReturnCustomComp } from './ReturnCustomComp'
import { ReturnNewCredential } from './ReturnNewCredential'

const RetunrSideComp = ({ retunrSideComp, setIsCreateNewCredential, returnNewCredential, returnCustomComp }) => {
const ReturnSideComp = ({ returnSideComp, setIsCreateNewCredential, returnNewCredential, returnCustomComp }) => {
return (
<>
<div
Expand All @@ -14,11 +14,11 @@ const RetunrSideComp = ({ retunrSideComp, setIsCreateNewCredential, returnNewCre
width: 100%;
`}
>
<ReturnCustomComp returnCustomComp={returnCustomComp} retunrSideComp={retunrSideComp} />
<ReturnNewCredential returnNewCredential={returnNewCredential} setIsCreateNewCredential={setIsCreateNewCredential} retunrSideComp={retunrSideComp} />
<ReturnCustomComp returnCustomComp={returnCustomComp} returnSideComp={returnSideComp} />
<ReturnNewCredential returnNewCredential={returnNewCredential} setIsCreateNewCredential={setIsCreateNewCredential} returnSideComp={returnSideComp} />
</div>
</>
)
}

export { RetunrSideComp }
export { ReturnSideComp }
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { ReturnAccessToken } from './Return/ReturnAccessToken';
import { ProjectsDropdown } from './Return/ProjectsDropdown';
import { ReturnManageDeveloperConsole } from './Return/ReturnManageDeveloperConsole';
import { ReturnDevConsoleLink } from './Return/ReturnDevConsoleLink';
import { RetunrSideComp } from './Return/RetunrSideComp';
import { ReturnSideComp } from './Return/ReturnSideComp';
import { ReturnCustomComp } from './Return/ReturnCustomComp';
import { ReturnNewCredential } from './Return/ReturnNewCredential';
import { ReturnClientId } from './Return/ReturnClientId';
Expand Down Expand Up @@ -382,7 +382,7 @@ GetCredential.Return.AccessToken = ReturnAccessToken;
GetCredential.Return.ProjectsDropdown = ProjectsDropdown;
GetCredential.Return.ManageDeveloperConsole = ReturnManageDeveloperConsole;
GetCredential.Return.DevConsoleLink = ReturnDevConsoleLink;
GetCredential.Return.Side = RetunrSideComp;
GetCredential.Return.Side = ReturnSideComp;
GetCredential.Return.Side.Custom = ReturnCustomComp;
GetCredential.Return.Side.NewCredential = ReturnNewCredential;
GetCredential.Return.Product = CardProduct;
Expand Down

0 comments on commit ead5d5e

Please sign in to comment.