mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
ditch popover arrow for now
This commit is contained in:
parent
87cb5fe36b
commit
f3d011cae7
@ -3,6 +3,7 @@
|
||||
$popoverWidth: 18rem;
|
||||
|
||||
.popover {
|
||||
position: relative;
|
||||
width: $popoverWidth;
|
||||
padding: $spacer / 2;
|
||||
background: $brand-black;
|
||||
|
@ -4,15 +4,10 @@ import styles from './Popover.module.scss'
|
||||
|
||||
const Popover = ({
|
||||
forwardedRef,
|
||||
style,
|
||||
arrowProps
|
||||
style
|
||||
}: {
|
||||
forwardedRef: (ref: HTMLElement | null) => void
|
||||
style: React.CSSProperties
|
||||
arrowProps: {
|
||||
ref: (ref: HTMLElement | null) => void
|
||||
style: React.CSSProperties
|
||||
}
|
||||
}) => (
|
||||
<div className={styles.popover} ref={forwardedRef} style={style}>
|
||||
<div className={styles.popoverInfoline}>
|
||||
@ -49,7 +44,6 @@ const Popover = ({
|
||||
{states => states.network && states.network}
|
||||
</User.Consumer> */}
|
||||
</div>
|
||||
<div ref={arrowProps.ref} style={arrowProps.style} />
|
||||
</div>
|
||||
)
|
||||
|
||||
|
@ -39,11 +39,10 @@ export default class AccountStatus extends PureComponent<
|
||||
</Reference>
|
||||
{this.state.isPopoverOpen && (
|
||||
<Popper placement="auto">
|
||||
{({ ref, style, placement, arrowProps }) => (
|
||||
{({ ref, style, placement }) => (
|
||||
<AccountPopover
|
||||
forwardedRef={ref}
|
||||
style={style}
|
||||
arrowProps={arrowProps}
|
||||
data-placement={placement}
|
||||
/>
|
||||
)}
|
||||
|
Loading…
Reference in New Issue
Block a user