this is podracing

This commit is contained in:
ntr committed 2022-09-04 20:36:42 +10:00
1 parent 65d37eeb61
commit f2294def05
12 files changed
+187 -169

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
import { route } from 'preact-router';
import http from './http';
const actions = store => ({
setUser: function setUser(state, user) {
return { user };
},
setOffers: function setOffers(state, offers) {
return { offers };
},
logout: async function logout() {
await http.postLogout();
route('/login');
return { user: null };
},
});
export default actions;