From 29b883c6770de621ac70ae4eb9e4802833636c53 Mon Sep 17 00:00:00 2001 From: Rutik Wankhade Date: Sun, 6 Oct 2024 17:46:54 +0530 Subject: [PATCH] fix: fix custom icon edge case ui --- src/components/Editor.js | 23 +++++++++++++---------- src/components/Header.js | 2 +- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/components/Editor.js b/src/components/Editor.js index 9d5866e..df12dd6 100644 --- a/src/components/Editor.js +++ b/src/components/Editor.js @@ -115,17 +115,20 @@ class Editor extends React.Component { className="outline-none focus:outline-none items-center text-lg text-gray-700" /> +
- {this.state.icon.label === 'custom' ? -
- this.setState({ 'customIcon': URL.createObjectURL(e.target.files[0]) })} - /> -
- : -
- } + {this.state.icon.label === 'custom' ? +
+ this.setState({ 'customIcon': URL.createObjectURL(e.target.files[0]) })} + /> +
+ : +
+ } + +
diff --git a/src/components/Header.js b/src/components/Header.js index 42aa204..4843278 100644 --- a/src/components/Header.js +++ b/src/components/Header.js @@ -16,7 +16,7 @@ const Header = () => {
{/* How to use */} - ⭐ Star on Github + ⭐ Star on Github Share on Twitter