-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dydx banner and add info on forced action pages (#529)
* Update dydx banner * Add info panel on forced withdrawal pages * UPdate panel background
- Loading branch information
Showing
3 changed files
with
80 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
packages/frontend/src/view/pages/user/components/DyDxStoppedInfoPanel.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { PageContext } from '@explorer/shared' | ||
import React from 'react' | ||
|
||
import { InfoIcon } from '../../../assets/icons/InfoIcon' | ||
import { Card } from '../../../components/Card' | ||
|
||
interface DydxStoppedInfoPanelProps { | ||
context: PageContext | ||
} | ||
|
||
export function DydxStoppedInfoPanel(props: DydxStoppedInfoPanelProps) { | ||
if (props.context.instanceName !== 'dYdX') { | ||
return null | ||
} | ||
return ( | ||
<section> | ||
<Card className="flex flex-col gap-3 bg-yellow-300 bg-opacity-20"> | ||
<div className="flex"> | ||
<InfoIcon className="mr-1.5 mt-px shrink-0 fill-yellow-300" /> | ||
<p className="font-bold leading-tight text-yellow-300"> | ||
dYdX v3 has stopped trading. | ||
</p> | ||
</div> | ||
<p className="mb-1.5 text-sm font-semibold leading-tight"> | ||
Forced withdrawals will not be executed. Withdrawals will be available | ||
via Escape Hatch mechanism after October 30, ~14:30 UTC. | ||
</p> | ||
</Card> | ||
</section> | ||
) | ||
} |