Skip to content

Commit

Permalink
feat: use window.adobeIMS instead of ims from context
Browse files Browse the repository at this point in the history
  • Loading branch information
deepessh committed Jun 7, 2024
1 parent 6f18f83 commit 4922ec4
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import GetCredentialContext from './GetCredentialContext';
const SignIn = ({}) => {
const { getCredentialData } = useContext(GetCredentialContext);
const signInProps = getCredentialData?.[SignIn];

const { ims } = useContext(Context);

return (
<>
Expand Down Expand Up @@ -55,7 +53,7 @@ const SignIn = ({}) => {
width: fit-content;
margin-top: 10px;
`}
onClick={() => ims?.signIn()}>
onClick={() => window.adobeIMS.signIn()}>
<span className="spectrum-Button-label">{signInProps?.buttonText}</span>
</button>
)}
Expand Down

0 comments on commit 4922ec4

Please sign in to comment.