diff --git a/scenes/SceneSlates.js b/scenes/SceneSlates.js index 71804202..0c2355e0 100644 --- a/scenes/SceneSlates.js +++ b/scenes/SceneSlates.js @@ -56,6 +56,25 @@ export default class SceneSlates extends React.Component { }; }); + let subscriptions = this.props.viewer.subscriptions + .filter((each) => { + return !!each.target_slate_id; + }) + .map((relation) => ( +
+ this.props.onAction({ + type: "NAVIGATE", + value: "V1_NAVIGATION_SLATE", + data: relation.slate, + }) + } + > + +
+ )); + // TODO(jim): Refactor later. const slateButtons = [ { name: "Create slate", type: "SIDEBAR", value: "SIDEBAR_CREATE_SLATE" }, @@ -106,28 +125,15 @@ export default class SceneSlates extends React.Component { ) ) : null} {this.state.tab === 1 ? ( - - This feature is coming soon. - + subscriptions.length ? ( + subscriptions + ) : ( + + You aren't following any slates yet! Get started by following any + slates you encounter that you want to be updated on + + ) ) : null} - {this.props.viewer.subscriptions - .filter((each) => { - return !!each.target_slate_id; - }) - .map((relation) => ( -
- this.props.onAction({ - type: "NAVIGATE", - value: "V1_NAVIGATION_SLATE", - data: relation.slate, - }) - } - > - -
- ))} ); }