From 3fd414b3cc08051204129c432207e91dc46963e7 Mon Sep 17 00:00:00 2001 From: Joshua Shoemaker Date: Wed, 22 Jul 2020 22:48:11 -0500 Subject: [PATCH] feat: added view button to nodule list item --- src/views/NoduleList/NoduleList.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/views/NoduleList/NoduleList.js b/src/views/NoduleList/NoduleList.js index b819331..4882c45 100644 --- a/src/views/NoduleList/NoduleList.js +++ b/src/views/NoduleList/NoduleList.js @@ -2,7 +2,7 @@ import React, { Component } from 'react' import { Card, Icon, CardContent } from 'semantic-ui-react' import './NoduleList.css' -import Nodule from '../../Collections/Nodules' +import Nodule from '../../Models/Nodules' import NoduleListController from '../../Controllers/NoduleListController' class NoduleList extends Component { @@ -28,12 +28,17 @@ class NoduleList extends Component { { n.label } {`${n.tables.length} tables`} - + { this.controller.deleteNodule(n.id) }} - style={{ cursor: 'pointer' }} - > - Delete + style={{ cursor: 'pointer' }}> + Delete + + { this.controller.logExportById(n.id) }} + style={{ cursor: 'pointer' }}> + View + )