Skip to content

Commit b21bc32

Browse files
committed
Style: Revert formatting to match upstream
1 parent 9292dc7 commit b21bc32

1 file changed

Lines changed: 14 additions & 20 deletions

File tree

src/component/fileBrowser.jsx

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -166,20 +166,17 @@ const LocalFileBrowser = ({ superState, dispatcher }) => {
166166
/>
167167
</>
168168
)}
169-
{
170-
dirButton && (
171-
<button
172-
type="button"
173-
className="inputButton"
174-
disabled={!dirButton}
175-
onClick={newFeature}
176-
>
177-
Upload Directory
178-
</button>
179-
)
180-
}
181-
{
182-
!dirButton
169+
{dirButton && (
170+
<button
171+
type="button"
172+
className="inputButton"
173+
disabled={!dirButton}
174+
onClick={newFeature}
175+
>
176+
Upload Directory
177+
</button>
178+
)}
179+
{!dirButton
183180
&& (
184181
<input
185182
type="file"
@@ -189,10 +186,8 @@ const LocalFileBrowser = ({ superState, dispatcher }) => {
189186
accept=".graphml"
190187
onChange={(e) => readFile(superState, dispatcher, e.target.files[0])}
191188
/>
192-
)
193-
}
194-
{
195-
dirButton
189+
)}
190+
{dirButton
196191
&& (
197192
<button
198193
type="button"
@@ -211,8 +206,7 @@ const LocalFileBrowser = ({ superState, dispatcher }) => {
211206
// accept=".graphml"
212207
// onChange={(e) => readFile(superState, dispatcher, e.target.files[0])}
213208
// />
214-
)
215-
}
209+
)}
216210
<h4>
217211
Folder Name :
218212
{' '}

0 commit comments

Comments
 (0)