feat: show sidebar depends on meta data

This commit is contained in:
EnixCoda 2020-03-29 16:51:43 +08:00
parent efedfc786f
commit b458e241fd
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD

View file

@ -30,7 +30,7 @@ const RawGitako: React.FC<Props & ConnectorState> = function RawGitako(props) {
const shouldShow =
intelligentToggle === null ? platform.shouldShow(props.metaData) : intelligentToggle
props.setShouldShow(shouldShow)
}, [intelligentToggle])
}, [intelligentToggle, props.metaData])
React.useEffect(() => {
const { init } = props