-
Notifications
You must be signed in to change notification settings - Fork 3
/
filters.tsx
64 lines (51 loc) · 1.36 KB
/
filters.tsx
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import { List } from '@bluebase/components';
import React from 'react';
import { SettingsPageProps } from './src';
export const filters = {
'bluebase.plugin.setting-app.pages': [
{
key: 'bluebase-settings-main-app-management',
priority: 20,
value: (pages: SettingsPageProps[]) => {
const indexOfAbout = pages.findIndex(p => p.name === 'About');
const result = [...pages];
result.splice(indexOfAbout, 0, {
name: 'AccountSettings',
path: 'account',
browserParams: { windowFeatures: { width: 800 } },
url: 'https://blueeast.com',
options: {
drawerIcon: { type: 'icon', name: 'account' },
title: 'Account',
},
} as any);
return result;
// return [
// ...pages,
// // {
// // name: 'AccountSettings',
// // path: 'account',
// // right: <Icon name="open-in-new" />,
// // options: {
// // drawerIcon: { type: 'icon', name: 'account' },
// // title: 'Account',
// // },
// // },
// ,
// ];
},
},
],
'SettingsApp.settings.list.items': [
{
key: 'bluebase-settings-list-items',
priority: 20,
value: (items: any[]) => {
const Logout = () => (
<List.Item title="Logout" left={<List.Icon name="logout" />} onPress={() => {}} />
);
return [...items, { Component: Logout, key: 'logout' }];
},
},
],
};