From 1870f3fdf43707a15fda0f609a021f516f45eb63 Mon Sep 17 00:00:00 2001
From: Piotr Russ <mail@pruss.it>
Date: Wed, 18 Nov 2020 23:15:38 +0100
Subject: finish auth routes, create cookie token, fix folder structure, add
 context to FE

---
 client/src/common/jsx/LangSwitch.jsx | 43 ------------------------------------
 1 file changed, 43 deletions(-)
 delete mode 100644 client/src/common/jsx/LangSwitch.jsx

(limited to 'client/src/common/jsx/LangSwitch.jsx')

diff --git a/client/src/common/jsx/LangSwitch.jsx b/client/src/common/jsx/LangSwitch.jsx
deleted file mode 100644
index eba1b27..0000000
--- a/client/src/common/jsx/LangSwitch.jsx
+++ /dev/null
@@ -1,43 +0,0 @@
-import React from 'react';
-import WithHover from './WithHover.jsx';
-import texts from '../data/texts.js';
-
-const LangSwitch = ({ lang, setLang, setHover, opened, setOpened}) => {
-
-  const handleSetLang = (key) => {
-    setLang(key);
-    setOpened(false);
-  };
-
-  return (
-    <div className="lang-switch">
-      <WithHover setHover={setHover} message="click-to-change-language">
-        <span
-          className={`lang-switch__main-item${opened === 'lang' ? ' lang-switch__main-item--active' : ''}`}
-          onClick={() => setOpened(opened !== 'lang' ? 'lang' : false)}
-        >
-          {lang}
-        </span>
-        {
-          opened === 'lang' && (
-            <div className="lang-switch__list">
-              {
-                Object.keys(texts).map(key => key !== lang && (
-                  <span
-                    className="lang-switch__item"
-                    key={key}
-                    onClick={() => handleSetLang(key)}
-                  >
-                    {key}
-                  </span>
-                ))
-              }
-            </div>
-          )
-        }
-      </WithHover>
-    </div>
-  );
-};
-
-export default LangSwitch;
-- 
cgit v1.2.3

