moving to vite as build system 🎉

This commit is contained in:
weakmap@gmail.com
2022-12-19 21:44:10 +01:00
parent e155e992d4
commit 4785cf797d
39 changed files with 289 additions and 1821 deletions

View File

@@ -0,0 +1,21 @@
import React from 'react';
import { Button } from 'semantic-ui-react';
import { xhrPost } from '../../services/xhr';
const Logout = function Logout() {
return (
<Button
content="Logout"
labelPosition="left"
icon="user"
size="mini"
onClick={async () => {
await xhrPost('/api/login/logout');
location.reload();
}}
negative
/>
);
};
export default Logout;