Press n or j to go to the next uncovered block, b, p or k for the previous block.
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 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | 1x 1x 1x | // @flow import React from 'react'; import { Flex, Badge } from 'antd'; export const sidebarButtons = [ { id: 1, title: 'Orders', onClick: () => {}, }, { id: 2, title: 'Compare', onClick: () => {}, }, { id: 3, title: 'Admin', onClick: () => {}, }, ]; export const filters = [ { title: 'Group1', description: 'CustomItem1', }, { title: 'Group2', description: 'CustomItem2', }, { title: 'Group3', description: 'CustomItem3', }, { title: 'Group4', description: 'CustomItem4', }, { title: 'Group5', description: 'CustomItem5', }, { title: 'Group6', description: 'CustomItem6', }, ]; export const items = [ { key: 1, label: ( <Flex gap={10} align="center"> <div>Main info</div> <Badge count={3} /> </Flex> as React.Node ), children: <div>Content of Tab Pane 1</div> as React.Node, }, { key: 2, label: ( <Flex gap={10} align="center"> <div>Chat</div> <Badge count={3} /> </Flex> as React.Node ), children: <div>Content of Tab Pane 2</div> as React.Node, }, { key: 3, label: ( <Flex gap={10} align="center"> <div>Dashboard</div> <Badge count={3} /> </Flex> as React.Node ), children: <div>Content of Tab Pane 3</div> as React.Node, }, { key: 4, label: ( <Flex gap={10} align="center"> <div>Documents</div> <Badge count={3} /> </Flex> as React.Node ), children: <div>Content of Tab Pane 4</div> as React.Node, }, ]; |