aboutsummaryrefslogtreecommitdiff
path: root/client/src/components/Editor/Editor.jsx
diff options
context:
space:
mode:
authorBlaster4385 <blaster4385@tablaster.dev>2024-02-19 20:43:27 +0530
committerBlaster4385 <blaster4385@tablaster.dev>2024-02-21 23:52:45 +0530
commit2186af44ecc1924f8343e06714999c76a15a1c0e (patch)
tree2a31b45560a6459ca5593651409742f7ac28caba /client/src/components/Editor/Editor.jsx
parentc9c42ffd128baad2c06437e73d83b5867468dbc5 (diff)
refactor: Revamp UI and colorscheme
- We gruvbox now :)
Diffstat (limited to 'client/src/components/Editor/Editor.jsx')
-rw-r--r--client/src/components/Editor/Editor.jsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/components/Editor/Editor.jsx b/client/src/components/Editor/Editor.jsx
index 0bb046e..dd07e5f 100644
--- a/client/src/components/Editor/Editor.jsx
+++ b/client/src/components/Editor/Editor.jsx
@@ -25,6 +25,10 @@ const Editor = () => {
};
const handleClick = async () => {
+ if (!text) {
+ alert("Please enter some text!");
+ return;
+ }
const response = await fetch(`${SERVER_BASE_URL}/bin`, {
method: "POST",
headers: {