-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
139 changed files
with
3,444 additions
and
2,125 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 |
---|---|---|
@@ -1,21 +1,24 @@ | ||
import React, { ReactNode } from 'react'; | ||
import classNames from 'classnames'; | ||
|
||
import { withStyles, WithStylesImportType } from 'hocs/withStyles'; | ||
import { WithClassnameType } from '../../types'; | ||
|
||
import styles from '../dappModalStyles.scss'; | ||
|
||
export interface DappModalBodyPropsType extends WithClassnameType { | ||
children?: ReactNode; | ||
} | ||
|
||
export const DappModalBody = ({ | ||
const DappModalBodyComponent = ({ | ||
className, | ||
children | ||
}: DappModalBodyPropsType) => { | ||
children, | ||
styles | ||
}: DappModalBodyPropsType & WithStylesImportType) => { | ||
return ( | ||
<div className={classNames(styles.dappModalBody, className)}> | ||
<div className={classNames(styles?.dappModalBody, className)}> | ||
{children} | ||
</div> | ||
); | ||
}; | ||
|
||
export const DappModalBody = withStyles(DappModalBodyComponent, { | ||
local: () => import('UI/DappModal/dappModalStyles.scss') | ||
}); |
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 |
---|---|---|
@@ -1,29 +1,32 @@ | ||
import React from 'react'; | ||
import classNames from 'classnames'; | ||
|
||
import { withStyles, WithStylesImportType } from 'hocs/withStyles'; | ||
import { WithClassnameType } from '../../types'; | ||
|
||
import styles from '../dappModalStyles.scss'; | ||
|
||
export interface DappModalFooterPropsType extends WithClassnameType { | ||
visible?: boolean; | ||
footerText?: string; | ||
customFooter?: JSX.Element; | ||
} | ||
|
||
export const DappModalFooter = ({ | ||
const DappModalFooterComponent = ({ | ||
visible, | ||
customFooter, | ||
className, | ||
footerText | ||
}: DappModalFooterPropsType) => { | ||
footerText, | ||
styles | ||
}: DappModalFooterPropsType & WithStylesImportType) => { | ||
if (!visible) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<div className={classNames(styles.dappModalFooter, className)}> | ||
<div className={classNames(styles?.dappModalFooter, className)}> | ||
{customFooter ?? <div>{footerText}</div>} | ||
</div> | ||
); | ||
}; | ||
|
||
export const DappModalFooter = withStyles(DappModalFooterComponent, { | ||
local: () => import('UI/DappModal/dappModalStyles.scss') | ||
}); |
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.