forked from deriv-com/SmartCharts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DTRA]/Ahmad/DTRA-951/Template Message For Accumulators (deriv-com#1534)
* info message * fix * review fix * Update src/utils/index.ts --------- Co-authored-by: balakrishna-deriv <[email protected]>
- Loading branch information
1 parent
bda62ce
commit 8171c26
Showing
8 changed files
with
202 additions
and
32 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
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
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,25 @@ | ||
import classNames from 'classnames'; | ||
import React from 'react'; | ||
|
||
type InfoFootnoteProps = { | ||
className?: string; | ||
isMobile?: boolean; | ||
text: string; | ||
}; | ||
|
||
const InfoFootnote = ({ className, isMobile, text }: InfoFootnoteProps) => ( | ||
<div | ||
className={classNames(className,{ | ||
[`${className}--mobile`]: isMobile, | ||
})} | ||
> | ||
{text} | ||
</div> | ||
); | ||
|
||
InfoFootnote.defaultProps = { | ||
className: 'info-footnote', | ||
isMobile: false, | ||
}; | ||
|
||
export default React.memo(InfoFootnote); |
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
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