Skip to content

Commit

Permalink
Merge pull request #119 from adrienne-deriv/callback-page-design
Browse files Browse the repository at this point in the history
Replaced Lotty with gif
  • Loading branch information
thisyahlen-deriv authored Dec 4, 2024
2 parents 289de50 + 319a436 commit 52c157a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 24 deletions.
25 changes: 5 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"dependencies": {
"@deriv-com/utils": "^0.0.42",
"js-cookie": "3.0.5",
"lottie-react": "^2.4.0",
"oidc-client-ts": "^3.1.0"
},
"devDependencies": {
Expand Down
Binary file added src/assets/callback_loader.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions src/components/Callback/Callback.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { useCallback, useState, useEffect } from 'react';
import { LegacyTokens, requestLegacyToken, requestOidcToken, OIDCError, OIDCErrorType } from '../../oidc';
import DerivLogoIcon from '../../assets/deriv_logo.svg?react';
import DerivLoaderIcon from '../../assets/callback_loader.gif';
import Cookies from 'js-cookie';
import Lottie from 'lottie-react';
import callbackLoaderAnimation from '../../assets/callback_loader.json';

import './Callback.scss';

Expand Down Expand Up @@ -129,7 +128,7 @@ export const Callback = ({
<div className='callback__content'>
{!error && (
<>
<Lottie animationData={callbackLoaderAnimation} loop width={156} height={156} />
<img src={DerivLoaderIcon} width={234} height={234} />
<h3 className='callback__title'>Logging into your account</h3>
</>
)}
Expand Down

0 comments on commit 52c157a

Please sign in to comment.