From 774fddb6bf8f53ff77182b5cd51f4e33621a22d5 Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Tue, 12 Nov 2019 04:44:27 -0800 Subject: [PATCH] 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 --- src/chrome/ErrorBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chrome/ErrorBar.tsx b/src/chrome/ErrorBar.tsx index 35b74c5e9..b39a43345 100644 --- a/src/chrome/ErrorBar.tsx +++ b/src/chrome/ErrorBar.tsx @@ -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;