mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: show error properly
This commit is contained in:
parent
254e916445
commit
b01a4c418c
2 changed files with 3 additions and 3 deletions
|
|
@ -120,7 +120,7 @@ class Gitako extends React.PureComponent<Props & ConnectorState> {
|
|||
<div className={'gitako-side-bar'}>
|
||||
<Portal into={logoContainerElement}>
|
||||
<ToggleShowButton
|
||||
hasError={Boolean(error)}
|
||||
error={(error)}
|
||||
shouldShow={shouldShow}
|
||||
toggleShowSideBar={toggleShowSideBar}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@ import Icon from 'components/Icon'
|
|||
import cx from 'utils/cx'
|
||||
|
||||
type Props = {
|
||||
hasError: boolean
|
||||
error: string
|
||||
shouldShow: boolean
|
||||
toggleShowSideBar: React.MouseEventHandler
|
||||
}
|
||||
export default function Logo({ hasError: error, shouldShow, toggleShowSideBar }: Props) {
|
||||
export default function Logo({ error, shouldShow, toggleShowSideBar }: Props) {
|
||||
return (
|
||||
<div
|
||||
className={cx('gitako-toggle-show-button-wrapper', {
|
||||
|
|
|
|||
Loading…
Reference in a new issue