Skip to content

Commit

Permalink
fix: failing checks
Browse files Browse the repository at this point in the history
  • Loading branch information
shontzu-deriv committed Apr 24, 2024
1 parent a09b083 commit fb6ae2e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 17 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const CompareAccountsButton = ({ isAccountAdded, platform, shortCode }: TCompare
restrictVanuatuAccountCreation,
hasSubmittedPersonalDetails,
authenticationInfo,
isDemo
!!isDemo
);

useEffect(() => {
Expand Down
8 changes: 1 addition & 7 deletions src/components/CFDSection/CFDHeading/CFDHeading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,7 @@ const CompareAccountsButton = () => {
if (!isAuthorized) return null;

return (
<Button
color='primary'
onClick={() => navigate('/traders-hub/compare-accounts')}
size='sm'
variant='ghost'
hideHoverStyles
>
<Button color='primary' onClick={() => navigate('/compare-accounts')} size='sm' variant='ghost' hideHoverStyles>
{title}
</Button>
);
Expand Down
9 changes: 7 additions & 2 deletions src/pages/compareAccounts/compareAccounts.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import { Link } from 'react-router-dom';

import CompareAccountsScreen from '../../cfd/screens/CFDCompareAccounts/CompareAccountsScreen';

export const CompareAccounts = () => {
return (
<>
<h1>Compare Accounts</h1>
<Link to='/'>Go to Homepage</Link>
<div>
<h1>Compare Accounts</h1>
<Link to='/'>Go to Homepage</Link>
</div>
<CompareAccountsScreen />
</>
);
};

0 comments on commit fb6ae2e

Please sign in to comment.