{this.state.isFollowing ? (
- Unfollow
+ Unfollow
) : (
- Follow
+ Follow
)}
{
this.props.onAction({
name: "Create slate",
@@ -60,8 +56,17 @@ export default class SceneSlates extends React.Component {
actions={
this.setState({ tab: value })}
+ value={this.props.tab}
+ onChange={(value) => {
+ if (value === 0) {
+ this.props.onAction({ type: "NAVIGATE", value: "V1_NAVIGATION_SLATES" });
+ } else {
+ this.props.onAction({
+ type: "NAVIGATE",
+ value: "V1_NAVIGATION_SLATES_FOLLOWING",
+ });
+ }
+ }}
style={{ margin: "0 0 24px 0" }}
/>
}
@@ -69,7 +74,7 @@ export default class SceneSlates extends React.Component {
{/*
@@ -77,7 +82,7 @@ export default class SceneSlates extends React.Component {
}
/> */}
- {this.state.tab === 0 ? (
+ {this.props.tab === 0 ? (
this.props.viewer.slates && this.props.viewer.slates.length ? (