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:
committed by
Facebook Github Bot
parent
d6814a8bf6
commit
774fddb6bf
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user