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
Michael Iseard
Kudos-Donations
Commits
a02034ea
Commit
a02034ea
authored
Feb 03, 2021
by
Michael Iseard
Browse files
Pass all props in filter
parent
bf5726c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/js/Settings/Components/SettingCard.jsx
View file @
a02034ea
const
{
CardBody
}
=
wp
.
components
const
{
applyFilters
}
=
wp
.
hooks
const
SettingCard
=
(
{
title
,
children
,
id
}
)
=>
{
const
SettingCard
=
(
props
)
=>
{
let
filtered
=
applyFilters
(
'
kudos.settings.settingCard.
'
+
id
,
{
title
:
title
,
children
:
children
})
let
filtered
=
applyFilters
(
'
kudos.settings.settingCard.
'
+
props
.
id
,
{...
props
})
return
(
<
CardBody
size
=
"medium"
>
...
...
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