Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Boudes
mastodon
Commits
ece38b93
Unverified
Commit
ece38b93
authored
1 year ago
by
Matt Jankowski
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove duplicate react helper method definitions (#24700)
parent
8e514b19
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/helpers/application_helper.rb
+0
-12
0 additions, 12 deletions
app/helpers/application_helper.rb
with
0 additions
and
12 deletions
app/helpers/application_helper.rb
+
0
−
12
View file @
ece38b93
...
...
@@ -155,18 +155,6 @@ module ApplicationHelper
tag
(
:meta
,
content:
content
,
property:
property
)
end
def
react_component
(
name
,
props
=
{},
&
block
)
if
block
.
nil?
content_tag
(
:div
,
nil
,
data:
{
component:
name
.
to_s
.
camelcase
,
props:
Oj
.
dump
(
props
)
})
else
content_tag
(
:div
,
data:
{
component:
name
.
to_s
.
camelcase
,
props:
Oj
.
dump
(
props
)
},
&
block
)
end
end
def
react_admin_component
(
name
,
props
=
{})
content_tag
(
:div
,
nil
,
data:
{
'admin-component'
:
name
.
to_s
.
camelcase
,
props:
Oj
.
dump
({
locale:
I18n
.
locale
}.
merge
(
props
))
})
end
def
body_classes
output
=
body_class_string
.
split
output
<<
"theme-
#{
current_theme
.
parameterize
}
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment