@@ -4,13 +4,16 @@ import { Link, useParams } from "react-router-dom";
44import CollectionTable from "../Components/CollectionTable" ;
55import DateShow from "../Components/DateShow" ;
66import DateTimeShow from "../Components/DateTimeShow" ;
7+ import UiKitIcon from "../Components/UiKitIcon" ;
78import Collection from "../Models/Collection" ;
89import { ADD_LABACCESS_DAYS } from "../Models/ProductAction" ;
910import Span from "../Models/Span" ;
1011import { get } from "../gateway" ;
1112import { confirmModal } from "../message" ;
1213import MembershipPeriodsInput from "./MembershipPeriodsInput" ;
1314
15+ const empty_title_with_nonzero_width = < > </ > ;
16+
1417function MemberBoxSpans ( ) {
1518 const { member_id } = useParams ( ) ;
1619
@@ -79,10 +82,11 @@ function MemberBoxSpans() {
7982 { title : "#" , sort : "span_id" } ,
8083 { title : "Typ" , sort : "type" } ,
8184 { title : "Skapad" , sort : "created_at" } ,
82- { title : "" } ,
85+ { title : "Ursprung " } ,
8386 { title : "Raderad" , sort : "deleted_at" } ,
8487 { title : "Start" , sort : "startdate" } ,
8588 { title : "Slut" , sort : "enddate" } ,
89+ { title : empty_title_with_nonzero_width } ,
8690 ] }
8791 rowComponent = { ( { item } ) => (
8892 < tr >
@@ -110,12 +114,14 @@ function MemberBoxSpans() {
110114 < DateShow date = { item . enddate } />
111115 </ td >
112116 < td >
113- < a
114- onClick = { ( ) => deleteItem ( item ) }
115- className = "removebutton"
116- >
117- < i className = "uk-icon-trash" />
118- </ a >
117+ { item . deleted_at === null && (
118+ < a
119+ onClick = { ( ) => deleteItem ( item ) }
120+ className = "removebutton"
121+ >
122+ < UiKitIcon icon = "trash" />
123+ </ a >
124+ ) }
119125 </ td >
120126 </ tr >
121127 ) }
0 commit comments