-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Purchase section improvements (#685)
* chore: initial trade results dev * chore: results and error messages * chore: popup load * chore: contract end * chore: add login error * chore: hide popup * chore: ui fixes * chore: fix sell and audit clash * chore: language fixes * chore: audit and qa test fixes * chore: fixed all around issues
- Loading branch information
1 parent
d2ca4cd
commit 36bc4cf
Showing
9 changed files
with
951 additions
and
614 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from 'react'; | ||
import { Tooltip } from '@deriv-com/quill-ui'; | ||
import parse from 'html-react-parser'; | ||
import { getLocalTime } from '../base/clock'; | ||
|
||
const parseData = (rawData) => !rawData ? '' : parse(rawData); | ||
|
||
const triggerClick = (query) => document.querySelector(query)?.click(); | ||
|
||
const TimeTooltipWrapper = (element, time) => { | ||
const localTime = getLocalTime(`${time}` || ''); | ||
return ( | ||
<Tooltip | ||
as='div' | ||
tooltipContent={localTime} | ||
tooltipPosition='left' | ||
variant='base' | ||
> | ||
{element} | ||
</Tooltip> | ||
); | ||
}; | ||
|
||
export { | ||
parseData, | ||
triggerClick, | ||
TimeTooltipWrapper, | ||
}; | ||
|
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
Oops, something went wrong.