From 30722077c5ec82b9ae6c573d158b3252c0dadf50 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 29 Apr 2019 12:42:10 +0200 Subject: [PATCH] make copyrightHolder editable --- client/src/routes/Details/AssetDetails.tsx | 31 +++++++++++++++++----- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/client/src/routes/Details/AssetDetails.tsx b/client/src/routes/Details/AssetDetails.tsx index 0606a69..6533de3 100644 --- a/client/src/routes/Details/AssetDetails.tsx +++ b/client/src/routes/Details/AssetDetails.tsx @@ -161,6 +161,25 @@ export default class AssetDetails extends PureComponent< {files.length} data files ) + private CopyrightHolder = ({ value }: { value: string }) => + this.state.isEditMode ? ( + + ) : ( +

+ {value} +

+ ) + private Date = ({ value }: { value: string }) => this.state.isEditMode ? ( { return ( <>