Events Client Module moved to old repos

This commit is contained in:
Luis Fernando Molina committed 2020-11-20 19:52:31 +01:00
1 parent 3e036d06a2
commit 8ff71c6daf
87 files changed

No files matched your search

@@ -0,0 +1,12 @@
export const toLocalTime = (epoch) => {
const localDate = new Date(0);
localDate.setUTCSeconds(epoch);
const options = { year: 'numeric', month: 'long', day: '2-digit' };
return (
`${localDate.toLocaleDateString(options)
} at ${
localDate.toLocaleTimeString('en-US', { hour: '2-digit', minute: '2-digit' })}`
);
};
export const temporaryFunction = input => input;
@@ -0,0 +1,9 @@
const getItem = async name => window.localStorage.getItem(name);
const setItem = async (name, value) => window.localStorage.setItem(name, value);
const removeItem = async name => window.localStorage.removeItem(name);
export {
getItem,
setItem,
removeItem,
};