Skip to content

Commit

Permalink
chore: apply request changes (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
jia-deriv authored Aug 5, 2024
1 parent 9ab43f1 commit 068b4f3
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions src/javascript/app/pages/loader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,26 @@ const PurchaseSectionLoader = ({ hideBottom }) => (
</>
);

const pageTypes = [
{
name: '404',
code: '404',
},
{
name: 'Trade',
code: 'trading',
},
{
name: 'Endpoint',
code: 'endpoint',
},
];

const Loader = () => {
const hasContractChange = useContractChange();

const [loading,setLoading] = useState(true);
const pageTypes = [
{
name: '404',
code: '404',
},
{
name: 'Trade',
code: 'trading',
},
{
name: 'Endpoint',
code: 'endpoint',
},
];


const getPageType = () => pageTypes.find(({ code }) => window.location.pathname.includes(code)) || { name: 'Generic', code: '' };

const page = getPageType().name;
Expand Down

0 comments on commit 068b4f3

Please sign in to comment.