Skip to content

Commit 5a3e766

Browse files
committed
fixed conflict solveing related issue
1 parent 3d31797 commit 5a3e766

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => {
126126
}
127127

128128
const createNewFile = async () => {
129+
plugin.verticalIcons.select('filePanel')
129130
await plugin.call('filePanel', 'createNewFile')
130131
}
131132

@@ -262,21 +263,22 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => {
262263
<h4>File</h4>
263264
<p className="mb-1">
264265
<i className="mr-2 far fa-file"></i>
265-
<span className="ml-1 mb-1 remixui_home_text" onClick={() => createNewFile()}>New File</span>
266+
<label className="ml-1 mb-1 remixui_home_text" onClick={() => createNewFile()}>New File</label>
266267
</p>
267268
<p className="mb-1">
268269
<i className="mr-2 far fa-file-alt"></i>
269-
<span className="ml-1 remixui_home_labelIt remixui_home_bigLabelSize remixui_home_text">
270+
<label className="ml-1 remixui_home_labelIt remixui_home_bigLabelSize remixui_home_text" htmlFor="openFileInput">
270271
Open Files
271-
<input title="open file" type="file" onChange={(event) => {
272-
event.stopPropagation()
273-
uploadFile(event.target)
274-
}} multiple />
275-
</span>
272+
</label>
273+
<input title="open file" type="file" id="openFileInput" onChange={(event) => {
274+
event.stopPropagation()
275+
plugin.verticalIcons.select('filePanel')
276+
uploadFile(event.target)
277+
}} multiple />
276278
</p>
277279
<p className="mb-1">
278280
<i className="mr-1 far fa-hdd"></i>
279-
<span className="ml-1 remixui_home_text" onClick={() => connectToLocalhost()}>Connect to Localhost</span>
281+
<label className="ml-1 remixui_home_text" onClick={() => connectToLocalhost()}>Connect to Localhost</label>
280282
</p>
281283
<p className="mt-3 mb-0"><label>LOAD FROM:</label></p>
282284
<div className="btn-group">
@@ -302,7 +304,7 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => {
302304
</p>
303305
<p className="mb-1">
304306
<i className="mr-2 fab fa-ethereum remixui_home_image"></i>
305-
<span className="remixui_home_text" onClick={() => switchToPreviousVersion()}>Old experience</span>
307+
<label className="remixui_home_text" onClick={() => switchToPreviousVersion()}>Old experience</label>
306308
</p>
307309
</div>
308310
</div>

0 commit comments

Comments
 (0)