collapse error bar by default

Summary: Since most employees use flipper in development mode, the current error bar might be overly obtrusive, so we collapse it by default

Reviewed By: priteshrnandgaonkar

Differential Revision: D18448192

fbshipit-source-id: 9aa211df6c9a519860dffdced3619119e0ee8e22
This commit is contained in:
Michel Weststrate
2019-11-12 04:44:27 -08:00
committed by Facebook Github Bot
parent d6814a8bf6
commit 774fddb6bf

View File

@@ -26,7 +26,7 @@ type DispatchFromProps = {
type Props = DispatchFromProps & StateFromProps;
const ErrorBar = memo(function ErrorBar(props: Props) {
const [collapsed, setCollapsed] = useState(false);
const [collapsed, setCollapsed] = useState(true);
if (!props.errors.length) {
return null;