pull/2477/head
filip mertens 2 years ago committed by yann300
parent 67f222077c
commit b202d3872f
  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') const scriptMedium = document.createElement('script')
scriptMedium.src = 'https://www.twilik.com/assets/retainable/rss-embed/retainable-rss-embed.js' scriptMedium.src = 'https://www.twilik.com/assets/retainable/rss-embed/retainable-rss-embed.js'
scriptMedium.async = true scriptMedium.async = true
document.body.appendChild(scriptMedium) // script causes a bug in the editor and prevents syntax error detection
// document.body.appendChild(scriptMedium)
return () => { return () => {
document.body.removeChild(scriptTwitter) document.body.removeChild(scriptTwitter)
document.body.removeChild(scriptMedium) 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" className="btn-danger p-2 m-1 border rounded-circle remixui_home_mediaBadge fab fa-medium"
id="remixIDEHomeMediumbtn" id="remixIDEHomeMediumbtn"
title="Medium blogs" title="Medium blogs"
hidden={true}
onClick={(e) => { onClick={(e) => {
setState(prevState => { setState(prevState => {
return { ...prevState, showMediaPanel: state.showMediaPanel === 'medium' ? 'none' : 'medium' } return { ...prevState, showMediaPanel: state.showMediaPanel === 'medium' ? 'none' : 'medium' }

@ -19,7 +19,7 @@ export function EnvironmentUI (props: EnvironmentProps) {
Environment Environment
</label> </label>
<div className="udapp_environment"> <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) => props.providers.providerList.map((provider, index) =>
<option id={provider.id} key={index} data-id={provider.dataId} <option id={provider.id} key={index} data-id={provider.dataId}

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

Loading…
Cancel
Save