1
1
import React , { useState } from "react" ;
2
- import { DownloadCloud , X , XOctagon } from "react-feather" ;
2
+ import { DownloadCloud , Trash2 , X , XOctagon } from "react-feather" ;
3
3
4
4
export const MorePatternsModal = ( { setShowModal, collections, setCollections, patterns, setPatterns, groks } ) => {
5
5
const urlRegex =
@@ -54,6 +54,15 @@ export const MorePatternsModal = ({ setShowModal, collections, setCollections, p
54
54
< X size = "1.25rem" onClick = { ( ) => setShowModal ( null ) } />
55
55
</ div >
56
56
< form >
57
+ < p style = { { marginTop : 0 } } >
58
+ This will make a request to the URL inputted below and attempt to load the patterns from the repsonse. See
59
+ the
60
+ < a style = { { color : "#89ddff" } } href = "https://github.com/cjslack/grok-debugger/tree/master/public/patterns" >
61
+ { " " }
62
+ pattern repository
63
+ </ a > { " " }
64
+ for example files.
65
+ </ p >
57
66
< div className = "modal-content" >
58
67
{ errorMessage && (
59
68
< div className = "notification error" >
@@ -71,7 +80,6 @@ export const MorePatternsModal = ({ setShowModal, collections, setCollections, p
71
80
/>
72
81
< input
73
82
style = { { marginTop : 10 } }
74
- autoFocus = { true }
75
83
name = "title"
76
84
placeholder = "Title"
77
85
maxLength = { 20 }
@@ -90,7 +98,7 @@ export const MorePatternsModal = ({ setShowModal, collections, setCollections, p
90
98
< >
91
99
< hr style = { { marginTop : "12px" } } />
92
100
< div >
93
- < h3 > Loaded Sets</ h3 >
101
+ < h3 > Downloaded Sets</ h3 >
94
102
< div >
95
103
{ collections
96
104
. filter ( ( c ) => c . url )
@@ -99,7 +107,7 @@ export const MorePatternsModal = ({ setShowModal, collections, setCollections, p
99
107
< div className = "set-item" key = { c . value } >
100
108
< div > { c . label } </ div >
101
109
< div className = "btn delete" onClick = { ( ) => handleDelete ( c . value ) } >
102
- < X size = "1rem" />
110
+ < Trash2 size = "1rem" />
103
111
</ div >
104
112
</ div >
105
113
) ;
0 commit comments