Clean up. Almost ready to deploy maybe. REally wanna rewrite but hey eventually we will.

This commit is contained in:
2025-06-18 16:49:44 -05:00
parent b7e8237dce
commit dd0ba7f894
20 changed files with 1303 additions and 1629 deletions

View File

@ -18,3 +18,19 @@ export const makeConditionalClassName = ({
}) => {
return defaultClassName + ' ' + (context ? on : off);
};
export const formatTime = (timestamp: string) => {
const date = new Date(timestamp);
const time = date.toLocaleTimeString('en-US', {
hour: 'numeric',
minute: 'numeric',
});
return time;
};
export const formatDate = (timestamp: string) => {
const date = new Date(timestamp);
const day = date.getDate();
const month = date.toLocaleString('default', { month: 'long' });
return `${month} ${day}`;
};