@@ -26,12 +26,6 @@ const attackTypeChoices = [
2626 { label : "Payload request" , value : "payload_request" } ,
2727] ;
2828
29- const iocTypeChoices = [
30- { label : "All" , value : "all" } ,
31- { label : "IP addresses" , value : "ip" } ,
32- { label : "Domains" , value : "domain" } ,
33- ] ;
34-
3529const prioritizationChoices = [
3630 { label : "Recent" , value : "recent" } ,
3731 { label : "Persistent" , value : "persistent" } ,
@@ -42,7 +36,6 @@ const prioritizationChoices = [
4236const initialValues = {
4337 feeds_type : "all" ,
4438 attack_type : "all" ,
45- ioc_type : "all" ,
4639 prioritize : "recent" ,
4740} ;
4841
@@ -94,7 +87,6 @@ export default function Feeds() {
9487 params : {
9588 feed_type : initialValues . feeds_type ,
9689 attack_type : initialValues . attack_type ,
97- ioc_type : initialValues . ioc_type ,
9890 prioritize : initialValues . prioritize ,
9991 } ,
10092 initialParams : {
@@ -110,11 +102,10 @@ export default function Feeds() {
110102 ( values ) => {
111103 try {
112104 setUrl (
113- `${ FEEDS_BASE_URI } /${ values . feeds_type } /${ values . attack_type } /${ values . prioritize } .json?ioc_type= ${ values . ioc_type } `
105+ `${ FEEDS_BASE_URI } /${ values . feeds_type } /${ values . attack_type } /${ values . prioritize } .json`
114106 ) ;
115107 initialValues . feeds_type = values . feeds_type ;
116108 initialValues . attack_type = values . attack_type ;
117- initialValues . ioc_type = values . ioc_type ;
118109 initialValues . prioritize = values . prioritize ;
119110
120111 const resetPage = {
@@ -157,7 +148,7 @@ export default function Feeds() {
157148 { ( formik ) => (
158149 < Form >
159150 < FormGroup row >
160- < Col sm = { 12 } md = { 3 } >
151+ < Col sm = { 12 } md = { 4 } >
161152 < Label
162153 className = "form-control-label"
163154 htmlFor = "Feeds__feeds_type"
@@ -175,7 +166,7 @@ export default function Feeds() {
175166 } }
176167 />
177168 </ Col >
178- < Col sm = { 12 } md = { 3 } >
169+ < Col sm = { 12 } md = { 4 } >
179170 < Label
180171 className = "form-control-label"
181172 htmlFor = "Feeds__attack_type"
@@ -193,25 +184,7 @@ export default function Feeds() {
193184 } }
194185 />
195186 </ Col >
196- < Col sm = { 12 } md = { 3 } >
197- < Label
198- className = "form-control-label"
199- htmlFor = "Feeds__ioc_type"
200- >
201- IOC type:
202- </ Label >
203- < Select
204- id = "Feeds__ioc_type"
205- name = "ioc_type"
206- value = { initialValues . ioc_type }
207- choices = { iocTypeChoices }
208- onChange = { ( e ) => {
209- formik . handleChange ( e ) ;
210- formik . submitForm ( ) ;
211- } }
212- />
213- </ Col >
214- < Col sm = { 12 } md = { 3 } >
187+ < Col sm = { 12 } md = { 4 } >
215188 < Label
216189 className = "form-control-label"
217190 htmlFor = "Feeds__prioritize"
0 commit comments