Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
webf
react-webf
Commits
32f49814
Commit
32f49814
authored
Feb 25, 2020
by
Mickaël Bourgier
Browse files
📝
[ListItem] Fix `clickable` prop is actually not deprecated
parent
b3bcfa4f
Pipeline
#1523
passed with stage
in 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/ListItem/ListItem.js
View file @
32f49814
...
...
@@ -108,8 +108,8 @@ ListItem.propTypes = {
className
:
PropTypes
.
string
,
/**
*
@deprecated
*
D
on
ne l'impression que l'élément est cliquable
*
Donne l'impression que l'élément est cliquable, à utiliser lorsque
*
`
on
Click` n'est pas défini (par exemple dans le cas d'un lien)
*/
clickable
:
(
props
,
propName
,
componentName
,
location
,
propFullName
)
=>
{
const
componentNameSafe
=
componentName
||
'
<<anonymous>>
'
;
...
...
@@ -120,7 +120,7 @@ ListItem.propTypes = {
`A falsy value in
\`
${
propFullNameSafe
}
\`
${
location
}
of `
+
`
\`
${
componentNameSafe
}
\`
will be ignored in v2.0 when the `
+
`
\`
onClick
\`
prop is defined. Do not set a falsy value when `
+
`
\`
onClick
\`
is defined. See `
+
`
\`
onClick
\`
is defined
to turn off this warning
. See `
+
`https://git.webalternatif.com/webf/react-webf/issues/28 for more `
+
`infos.`
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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