From 0d4d6ac018584f6ada542ee2f571751039cc7109 Mon Sep 17 00:00:00 2001 From: Joseph Spurrier Date: Tue, 7 Jul 2020 19:16:10 -0400 Subject: [PATCH] Convert menu to closure component --- src/app/ui/src/component/menu.js | 136 ++++++++++++++++--------------- 1 file changed, 69 insertions(+), 67 deletions(-) diff --git a/src/app/ui/src/component/menu.js b/src/app/ui/src/component/menu.js index 324c9ef0..1c92dd04 100644 --- a/src/app/ui/src/component/menu.js +++ b/src/app/ui/src/component/menu.js @@ -1,83 +1,85 @@ import m from "mithril"; // eslint-disable-line no-unused-vars import CookieStore from "@/module/cookiestore"; -function logout() { - CookieStore.clear(); - m.route.set("/"); -} +var View = () => { + let logout = function () { + CookieStore.clear(); + m.route.set("/"); + }; -var View = { - view: () => ( -
- -
- ), + + + ), + }; }; export default View;