|
|
|
@ -27,23 +27,23 @@ export function Markdown({ children, ...props }) { |
|
|
|
|
|
|
|
|
|
const LoadingRow = ({ cols }) => <Table.Row> |
|
|
|
|
<Table.Cell> |
|
|
|
|
<Flex.Container> |
|
|
|
|
<Box> |
|
|
|
|
<Flex.Item> |
|
|
|
|
<Skeleton variant='rect' height={40} width={40} /> |
|
|
|
|
</Flex.Item> |
|
|
|
|
<Box mi='x8' grow={1}> |
|
|
|
|
<Skeleton width='100%' /> |
|
|
|
|
<Skeleton width='100%' /> |
|
|
|
|
</Box> |
|
|
|
|
<Box display='flex'> |
|
|
|
|
<Flex.Item> |
|
|
|
|
<Skeleton variant='rect' height={40} width={40} /> |
|
|
|
|
</Flex.Item> |
|
|
|
|
<Box mi='x8' flexGrow={1}> |
|
|
|
|
<Skeleton width='100%' /> |
|
|
|
|
<Skeleton width='100%' /> |
|
|
|
|
</Box> |
|
|
|
|
</Flex.Container> |
|
|
|
|
</Box> |
|
|
|
|
</Table.Cell> |
|
|
|
|
{ Array.from({ length: cols - 1 }, (_, i) => <Table.Cell key={i}> |
|
|
|
|
<Skeleton width='100%' /> |
|
|
|
|
</Table.Cell>)} |
|
|
|
|
</Table.Row>; |
|
|
|
|
|
|
|
|
|
const style = { minHeight: '40px' }; |
|
|
|
|
|
|
|
|
|
export function DirectoryTable({ |
|
|
|
|
data = {}, |
|
|
|
|
renderRow, |
|
|
|
@ -79,7 +79,7 @@ export function DirectoryTable({ |
|
|
|
|
return <> |
|
|
|
|
<Flex.Container direction='column'> |
|
|
|
|
<Box> |
|
|
|
|
<Box mb='x16' display='flex' flexDirection='column'> |
|
|
|
|
<Box mb='x16' display='flex' flexDirection='column' style={style}> |
|
|
|
|
<TextInput placeholder={searchPlaceholder} addon={<Icon name='magnifier' size='x20'/>} onChange={handleChange} value={text} /> |
|
|
|
|
</Box> |
|
|
|
|
{channels && !channels.length |
|
|
|
|