diff --git a/src/containers/applications/apps/edge.jsx b/src/containers/applications/apps/edge.jsx index 2460df481..c194f4b58 100644 --- a/src/containers/applications/apps/edge.jsx +++ b/src/containers/applications/apps/edge.jsx @@ -8,6 +8,7 @@ export const EdgeMenu = () => { const [ierror, setErr] = useState(true); const [isTyping, setTyping] = useState(false); const [hist, setHist] = useState(["https://bing.com", "https://bing.com"]); + const [actualTab, setActualTab] = useState("search"); const dispatch = useDispatch(); const iframes = { @@ -94,6 +95,38 @@ export const EdgeMenu = () => { setErr(false); }; + const pageDocument = () => { + if(actualTab === "search"){ + return ( + + + + ) + } else { + return ( +
+ Contributors + Contributors +
+ ) + } + } + + const updateTab = { + _search : () => { + setActualTab("search") + }, + _contributors : () => { + setActualTab("contributors") + } + } + useEffect(() => { if (wnapp.url) { setTyping(false); @@ -124,8 +157,17 @@ export const EdgeMenu = () => {
-
-
New Tab
+
+
Search
+ +
+
+
Contributors
{ />
+
{
- - - + + {pageDocument()}