Don't redefine Tabs
Summary: I don't quite know how this worked before but we had `Type` both as a function and a type. I guess because types only exist in TS land it was okay, but it was confusing nevertheless. Reviewed By: nikoant Differential Revision: D25026916 fbshipit-source-id: f4f0351bf7eeec33ef760433157b3713054d9dc7
This commit is contained in:
committed by
Facebook GitHub Bot
parent
32ca27f4f7
commit
008803b502
@@ -21,10 +21,10 @@ const Row = styled(FlexColumn)({
|
|||||||
alignItems: 'flex-end',
|
alignItems: 'flex-end',
|
||||||
});
|
});
|
||||||
|
|
||||||
type Tabs = 'Plugin Status' | 'Install Plugins';
|
type TabsState = 'Plugin Status' | 'Install Plugins';
|
||||||
|
|
||||||
export default function (props: {onHide: () => any}) {
|
export default function (props: {onHide: () => any}) {
|
||||||
const [tab, setTab] = useState<Tabs>('Plugin Status');
|
const [tab, setTab] = useState<TabsState>('Plugin Status');
|
||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
<TabsContainer>
|
<TabsContainer>
|
||||||
|
|||||||
Reference in New Issue
Block a user