mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-23 14:07:20 +03:00
navigation: updates fields, reorders props
This commit is contained in:
parent
b483b4a7f3
commit
215d341b67
@ -52,75 +52,75 @@ const constructSlatesTreeForNavigation = (slates) => {
|
|||||||
export const generate = ({ library = [], slates = [] }) => [
|
export const generate = ({ library = [], slates = [] }) => [
|
||||||
{
|
{
|
||||||
id: "V1_NAVIGATION_HOME",
|
id: "V1_NAVIGATION_HOME",
|
||||||
|
decorator: "HOME",
|
||||||
name: "Home",
|
name: "Home",
|
||||||
pageTitle: "Welcome back!",
|
pageTitle: "Welcome back!",
|
||||||
decorator: "HOME",
|
|
||||||
children: null,
|
children: null,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "V1_NAVIGATION_DIRECTORY",
|
id: "V1_NAVIGATION_DIRECTORY",
|
||||||
|
decorator: "DIRECTORY",
|
||||||
name: "Directory",
|
name: "Directory",
|
||||||
pageTitle: "Your directory",
|
pageTitle: "Your directory",
|
||||||
decorator: "DIRECTORY",
|
|
||||||
children: null,
|
children: null,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "V1_NAVIGATION_SLATES",
|
id: "V1_NAVIGATION_SLATES",
|
||||||
|
decorator: "SLATES",
|
||||||
name: "Slates",
|
name: "Slates",
|
||||||
pageTitle: "Slates",
|
pageTitle: "Slates",
|
||||||
decorator: "SLATES",
|
|
||||||
children: constructSlatesTreeForNavigation(slates),
|
children: constructSlatesTreeForNavigation(slates),
|
||||||
},
|
},
|
||||||
constructFilesTreeForNavigation(library),
|
constructFilesTreeForNavigation(library),
|
||||||
{
|
{
|
||||||
id: "V1_NAVIGATION_LOCAL",
|
id: "V1_NAVIGATION_LOCAL",
|
||||||
|
decorator: "LOCAL_DATA",
|
||||||
name: "Local",
|
name: "Local",
|
||||||
pageTitle: "Your local data",
|
pageTitle: "Your local data",
|
||||||
decorator: "LOCAL_DATA",
|
|
||||||
children: [],
|
children: [],
|
||||||
ignore: false,
|
ignore: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "V1_NAVIGATION_WALLET",
|
id: "V1_NAVIGATION_WALLET",
|
||||||
|
decorator: "WALLET",
|
||||||
name: "Wallet",
|
name: "Wallet",
|
||||||
pageTitle: "Your wallet and addresses",
|
pageTitle: "Your wallet and addresses",
|
||||||
decorator: "WALLET",
|
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
id: "V1_NAVIGATION_DEAL_HISTORY",
|
id: "V1_NAVIGATION_DEAL_HISTORY",
|
||||||
|
decorator: "DEALS",
|
||||||
name: "Deal history",
|
name: "Deal history",
|
||||||
pageTitle: "Your deal history",
|
pageTitle: "Your deal history",
|
||||||
decorator: "DEALS",
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "V1_NAVIGATION_NETWORK",
|
id: "V1_NAVIGATION_NETWORK",
|
||||||
|
decorator: "NETWORK",
|
||||||
name: "Network",
|
name: "Network",
|
||||||
pageTitle: "The Filecoin Network",
|
pageTitle: "The Filecoin Network",
|
||||||
decorator: "ACTIVITY",
|
|
||||||
children: null,
|
children: null,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "V1_NAVIGATION_API",
|
id: "V1_NAVIGATION_API",
|
||||||
|
decorator: "SETTINGS_DEVELOPER",
|
||||||
name: "API",
|
name: "API",
|
||||||
pageTitle: "Developer API",
|
pageTitle: "Developer API",
|
||||||
decorator: "SETTINGS_DEVELOPER",
|
|
||||||
children: null,
|
children: null,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "V1_NAVIGATION_PROFILE",
|
id: "V1_NAVIGATION_PROFILE",
|
||||||
|
decorator: "EDIT_ACCOUNT",
|
||||||
name: "Profile & Account Settings",
|
name: "Profile & Account Settings",
|
||||||
pageTitle: "Your Profile & Account Settings",
|
pageTitle: "Your Profile & Account Settings",
|
||||||
decorator: "EDIT_ACCOUNT",
|
|
||||||
children: null,
|
children: null,
|
||||||
ignore: true,
|
ignore: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "V1_NAVIGATION_FILECOIN_SETTINGS",
|
id: "V1_NAVIGATION_FILECOIN_SETTINGS",
|
||||||
|
decorator: "SETTINGS",
|
||||||
name: "Filecoin Settings",
|
name: "Filecoin Settings",
|
||||||
pageTitle: "Filecoin Settings.",
|
pageTitle: "Filecoin Settings.",
|
||||||
decorator: "SETTINGS",
|
|
||||||
children: null,
|
children: null,
|
||||||
ignore: true,
|
ignore: true,
|
||||||
},
|
},
|
||||||
|
@ -65,7 +65,7 @@ const SCENES = {
|
|||||||
EDIT_ACCOUNT: <SceneEditAccount />,
|
EDIT_ACCOUNT: <SceneEditAccount />,
|
||||||
SLATES: <SceneSlates />,
|
SLATES: <SceneSlates />,
|
||||||
LOCAL_DATA: <SceneLocalData />,
|
LOCAL_DATA: <SceneLocalData />,
|
||||||
ACTIVITY: <SceneActivity />,
|
NETWORK: <SceneActivity />,
|
||||||
DIRECTORY: <SceneDirectory />,
|
DIRECTORY: <SceneDirectory />,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user