From f35896c96cc189211ce2fa46b2563ad2663b93ca Mon Sep 17 00:00:00 2001 From: Avanish Singh <79073722+aaviix@users.noreply.github.com> Date: Thu, 7 Dec 2023 18:26:42 +0100 Subject: [PATCH] Delete frontend-react/src/components/Sidebar.js --- frontend-react/src/components/Sidebar.js | 34 ------------------------ 1 file changed, 34 deletions(-) delete mode 100644 frontend-react/src/components/Sidebar.js diff --git a/frontend-react/src/components/Sidebar.js b/frontend-react/src/components/Sidebar.js deleted file mode 100644 index 3fbf4cc..0000000 --- a/frontend-react/src/components/Sidebar.js +++ /dev/null @@ -1,34 +0,0 @@ -import React from "react"; -import "../styles/style.css"; - -function addText(text_for_sidebar) { - const area = document.getElementById("text"); - area.innerText = text_for_sidebar; -} - -const Sidebar = (props) => { - return ( - <div id="sidebar"> - <ul> - <li> - <button className="bar" onClick={() => addText("Welcome to the Recipe Bot WebPage." + - "This bot is made to help you have proper recipes for the food you would love to have.")}> - Home - </button> - </li> - <li> - <button className="bar" onClick={() => addText('You can reach us here:\n' + - 'Avanish Singh: avanish.singh@stud.th-deg.de \nBrahim Ghaouthi: brahim.ghauothi@stud.th-deg.de \nRashid Aghayev:rashid.aghayev@stud.th-deg.de \nMamoun Mourad: mamoun.mourad@stud.th-deg.de')}> - Contact Us - </button> - </li> - <button className="bar" id="dark_theme" onClick={props.themeButtonClick}> - Dark Mode - </button> - </ul> - <p id="text"> Welcome to the Recipe Bot WebPage. - </p> - </div> - ); -}; -export default Sidebar; \ No newline at end of file -- GitLab