forked from cerebral/overmind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.tsx
More file actions
31 lines (28 loc) · 756 Bytes
/
index.tsx
File metadata and controls
31 lines (28 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import * as React from 'react'
import ActionsList from '../ActionsList'
import Action from '../Action'
import { Wrapper, CenterWrapper, ExpandAll } from './elements'
import { Connect, connect } from '../../app'
import Text from '../common/Text'
const Actions: React.SFC<Connect> = ({ app }) => {
if (!app.state.currentAction) {
return (
<CenterWrapper>
<Text variant="header">no actions triggered...</Text>
</CenterWrapper>
)
}
return (
<Wrapper>
<ExpandAll
isActive={app.state.expandAllActionDetails}
onClick={() => app.actions.toggleExpandAllActions()}
>
expand all
</ExpandAll>
<ActionsList />
<Action />
</Wrapper>
)
}
export default connect(Actions)