SeaMammals/index.tsx
Reviewed By: passy Differential Revision: D17258652 fbshipit-source-id: 0c7931c3e5a619cb8d06703aaf9e276458ef38f4
This commit is contained in:
committed by
Facebook Github Bot
parent
6aab0bd826
commit
c8c027150a
@@ -72,7 +72,7 @@ export default class SeaMammals extends FlipperPlugin<
|
|||||||
});
|
});
|
||||||
|
|
||||||
state = {
|
state = {
|
||||||
selectedID: null,
|
selectedID: null as string | null,
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
@@ -90,8 +90,7 @@ export default class SeaMammals extends FlipperPlugin<
|
|||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
<DetailSidebar>
|
<DetailSidebar>
|
||||||
{typeof selectedID === 'string' &&
|
{selectedID && renderSidebar(persistedState[selectedID])}
|
||||||
renderSidebar(persistedState[selectedID])}
|
|
||||||
</DetailSidebar>
|
</DetailSidebar>
|
||||||
</SeaMammals.Container>
|
</SeaMammals.Container>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user