fix errors at load

pull/3171/head
drafish 2 years ago
parent 865f6e1b80
commit 0a008eb73a
  1. 2
      libs/remix-ui/app/src/lib/remix-app/remix-app.tsx
  2. 2
      libs/remix-ui/panel/src/lib/plugins/panel-header.tsx

@ -19,7 +19,7 @@ const RemixApp = (props: IRemixAppUi) => {
const [hideSidePanel, setHideSidePanel] = useState<boolean>(false)
const [maximiseTrigger, setMaximiseTrigger] = useState<number>(0)
const [resetTrigger, setResetTrigger] = useState<number>(0)
const [locale, setLocale] = useState<{ code:string; messages:any }>({ code:'', messages:{} });
const [locale, setLocale] = useState<{ code:string; messages:any }>({ code:'en', messages:{} });
const sidePanelRef = useRef(null)
useEffect(() => {

@ -35,7 +35,7 @@ const RemixUIPanelHeader = (props: RemixPanelProps) => {
<header className='d-flex flex-column'>
<div className="swapitHeader px-3 pt-2 pb-0 d-flex flex-row">
<h6 className="pt-0 mb-1" data-id='sidePanelSwapitTitle'>
<FormattedMessage id={plugin?.profile.name + '.displayName'} defaultMessage={plugin?.profile.displayName || plugin?.profile.name} />
<FormattedMessage id={`${plugin?.profile.name || 'filePanel'}.displayName`} defaultMessage={plugin?.profile.displayName || plugin?.profile.name} />
</h6>
<div className="d-flex flex-row">
<div className="d-flex flex-row">

Loading…
Cancel
Save