Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
fether
Commits
402836f7
Commit
402836f7
authored
Jan 18, 2019
by
Luke Schoen
Browse files
refactor: Replace with defaultProps
parent
04f762fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/fether-ui/src/MenuPopup/MenuPopup.js
View file @
402836f7
...
...
@@ -23,18 +23,18 @@ export const MenuPopup = ({
verticalOffset
})
=>
(
<
SUIPopup
basic
=
{
basic
||
true
}
// toggles popup arrow
basic
=
{
basic
}
// toggles popup arrow
className
=
{
className
}
context
=
{
context
}
// element to bind the popup to or use position
horizontalOffset
=
{
horizontalOffset
||
0
}
horizontalOffset
=
{
horizontalOffset
}
hoverable
=
{
hoverable
}
// toggle autoclose
keepInViewPort
on
=
{
on
||
'
click
'
}
on
=
{
on
}
onClose
=
{(
event
,
data
)
=>
onClose
()}
open
=
{
open
}
position
=
{
position
||
'
top right
'
}
size
=
{
size
||
'
large
'
}
verticalOffset
=
{
verticalOffset
||
0
}
position
=
{
position
}
size
=
{
size
}
verticalOffset
=
{
verticalOffset
}
>
<
div
className
=
'
popup-screen
'
>
<
SUIPopup
.
Content
>
...
...
@@ -53,6 +53,15 @@ export const MenuPopup = ({
<
/SUIPopup
>
);
MenuPopup
.
defaultProps
=
{
basic
:
true
,
horizontalOffset
:
0
,
on
:
'
click
'
,
position
:
'
top right
'
,
size
:
'
large
'
,
verticalOffset
:
0
};
MenuPopup
.
propTypes
=
{
basic
:
PropTypes
.
bool
,
className
:
PropTypes
.
string
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment