Build the full navigation tree for document in header

This commit is contained in:
Jori Lallo
2017-05-13 15:36:06 -07:00
parent aa93ac9914
commit 3ecca38d9e
3 changed files with 57 additions and 9 deletions

View File

@@ -11,13 +11,21 @@ export type Team = {
name: string,
};
export type NavigationNode = {
id: string,
title: string,
url: string,
collapsed: boolean,
children: Array<NavigationNode>,
};
export type Collection = {
createdAt: string,
description: ?string,
id: string,
name: string,
type: 'atlas' | 'journal',
navigationTree: Object, // TODO
navigationTree: NavigationNode,
updatedAt: string,
url: string,
};