fix: revert selected files, no need to add tooltips on svg buttons

This commit is contained in:
Mauricio Navarro Miranda 2020-08-20 03:22:32 -05:00 committed by Josh Harvey
parent 653f939856
commit e7805040f0
7 changed files with 47 additions and 134 deletions

View file

@ -3,11 +3,9 @@ import classnames from 'classnames'
import React from 'react'
import { IconButton } from 'src/components/buttons'
import { H1, H4, P } from 'src/components/typography'
import { H1, H4 } from 'src/components/typography'
import { ReactComponent as CloseIcon } from 'src/styling/icons/action/close/zodiac.svg'
import Tooltip from './Tooltip'
const styles = {
modal: {
display: 'flex',
@ -76,16 +74,12 @@ const Modal = ({
<Paper className={classnames(classes.wrapper, className)}>
<div className={classes.header}>
{title && <TitleCase className={classes.title}>{title}</TitleCase>}
<Tooltip
enableOver
<IconButton
size={closeSize}
className={classes.button}
element={
<IconButton size={closeSize} onClick={() => handleClose()}>
<CloseIcon />
</IconButton>
}>
<P>Close</P>
</Tooltip>
onClick={() => handleClose()}>
<CloseIcon />
</IconButton>
</div>
<div className={classes.content}>{children}</div>
</Paper>