Skip to content

Commit e233e5b

Browse files
committed
Remove function option
1 parent 74ff7b5 commit e233e5b

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

lib/generators/react/component_generator.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@ class ComponentGenerator < ::Rails::Generators::NamedBase
6565
default: false,
6666
desc: 'Output coffeescript based component'
6767

68-
class_option :function,
69-
type: :boolean,
70-
default: false,
71-
aliases: '--func',
72-
desc: 'Output function based component'
73-
7468
REACT_PROP_TYPES = {
7569
'node' => 'PropTypes.node',
7670
'bool' => 'PropTypes.bool',
@@ -132,8 +126,6 @@ def create_component_file
132126
'js.jsx.coffee'
133127
elsif options[:ts]
134128
'js.jsx.tsx'
135-
elsif options[:function]
136-
'func.jsx'
137129
elsif options[:es6] || webpacker?
138130
'es6.jsx'
139131
else

lib/generators/templates/component.func.jsx

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)