From 625ae3280bdf83b66a66873344acad4103d30006 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 13 Aug 2020 21:33:03 +0300 Subject: feat: create FileUpload component --- src/containers/PollCreation/PollCreation.tsx | 4 +- src/containers/PollCreation/PollCreationImage.tsx | 77 +++++++---------------- 2 files changed, 24 insertions(+), 57 deletions(-) (limited to 'src/containers/PollCreation') diff --git a/src/containers/PollCreation/PollCreation.tsx b/src/containers/PollCreation/PollCreation.tsx index 1286c6f..34fc7c3 100644 --- a/src/containers/PollCreation/PollCreation.tsx +++ b/src/containers/PollCreation/PollCreation.tsx @@ -79,8 +79,8 @@ const PollCreation: React.FC = () => { {user && }
- - + +
+
+ or - - + +
); const Media = ( - - {isMediaHover && } - + + + + + ); - return ( -
- {file ? (url && Media) : Upload} -
- ); + return url ? Media : Upload; }; export default PollCreationImage; -- cgit v1.2.3