Merge pull request #2477 from ethereum/medium

bug fixes
pull/5370/head
yann300 3 years ago committed by GitHub
commit 358e675310
  1. 4
      libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.tsx
  2. 2
      libs/remix-ui/run-tab/src/lib/components/environment.tsx
  3. 4
      libs/remix-ui/search/src/lib/context/context.tsx

@ -111,7 +111,8 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => {
const scriptMedium = document.createElement('script')
scriptMedium.src = 'https://www.twilik.com/assets/retainable/rss-embed/retainable-rss-embed.js'
scriptMedium.async = true
document.body.appendChild(scriptMedium)
// script causes a bug in the editor and prevents syntax error detection
// document.body.appendChild(scriptMedium)
return () => {
document.body.removeChild(scriptTwitter)
document.body.removeChild(scriptMedium)
@ -324,6 +325,7 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => {
className="btn-danger p-2 m-1 border rounded-circle remixui_home_mediaBadge fab fa-medium"
id="remixIDEHomeMediumbtn"
title="Medium blogs"
hidden={true}
onClick={(e) => {
setState(prevState => {
return { ...prevState, showMediaPanel: state.showMediaPanel === 'medium' ? 'none' : 'medium' }

@ -19,7 +19,7 @@ export function EnvironmentUI (props: EnvironmentProps) {
Environment
</label>
<div className="udapp_environment">
<select id="selectExEnvOptions" data-id="settingsSelectEnvOptions" className="form-control udapp_select custom-select" value={props.selectedEnv} onChange={(e) => { handleChangeExEnv(e.target.value) }}>
<select id="selectExEnvOptions" data-id="settingsSelectEnvOptions" className="form-control udapp_select custom-select" value={props.selectedEnv || ''} onChange={(e) => { handleChangeExEnv(e.target.value) }}>
{
props.providers.providerList.map((provider, index) =>
<option id={provider.id} key={index} data-id={provider.dataId}

@ -344,8 +344,10 @@ export const SearchProvider = ({
console.log(e)
}
}
setTimeout(async () => {
await fetchWorkspace()
}, 500)
fetchWorkspace()
return () => {
plugin.off('fileManager', 'fileChanged')

Loading…
Cancel
Save