diff --git a/src/renderer/views/db/index.tsx b/src/renderer/views/db/index.tsx index 311af4f..eb83e44 100644 --- a/src/renderer/views/db/index.tsx +++ b/src/renderer/views/db/index.tsx @@ -4,6 +4,7 @@ import { Box, Button, Divider, + Drawer, Paper, Table, TableBody, @@ -84,75 +85,47 @@ export default class DBView extends React.Component { render() { const {collections, documents} = this.state return ( - - - - - - {/* - - - Path - - - - */} - - {collections.map((col, index) => ( - this.selectCollection(col)} key={col.path}> - - {col.path} - - - ))} - -
-
- - - - {/* - - - - - - - - - - */} - - {documents.map((doc: Document, index: number) => ( - this.selectDocument(doc)} key={doc.path}> - - - {doc.path} - - - - - {doc.value} - - - {dateString(doc.createdAt)} - - - {dateString(doc.updatedAt)} - - - - ))} - -
-
-
+ + + + {collections.map((col, index) => ( + this.selectCollection(col)} + key={col.path} + style={{cursor: 'pointer'}} + > + + {col.path} + + + ))} + +
+ + + + {documents.map((doc: Document, index: number) => ( + this.selectDocument(doc)} key={doc.path}> + + + {doc.path} + + + {doc.value} + + + {dateString(doc.createdAt)} + + + {dateString(doc.updatedAt)} + + + + + ))} + +
) }