chore: Remove older UI (#11720)

This commit is contained in:
Sivin Varghese
2025-07-01 09:43:44 +05:30
committed by GitHub
parent 58da92a252
commit 24ea968b00
369 changed files with 974 additions and 9363 deletions

View File

@@ -2,7 +2,7 @@ import fromUnixTime from 'date-fns/fromUnixTime';
import format from 'date-fns/format';
import isToday from 'date-fns/isToday';
import isYesterday from 'date-fns/isYesterday';
import { endOfDay, getUnixTime, startOfDay, differenceInDays } from 'date-fns';
import { endOfDay, getUnixTime, startOfDay } from 'date-fns';
export const formatUnixDate = (date, dateFormat = 'MMM dd, yyyy') => {
const unixDate = fromUnixTime(date);
@@ -16,10 +16,6 @@ export const formatDate = ({ date, todayText, yesterdayText }) => {
return date;
};
export const formatDigitToString = val => {
return val > 9 ? `${val}` : `0${val}`;
};
export const isTimeAfter = (h1, m1, h2, m2) => {
if (h1 < h2) {
return false;
@@ -45,8 +41,3 @@ export const generateRelativeTime = (value, unit, languageCode) => {
});
return rtf.format(value, unit);
};
export const getDayDifferenceFromNow = (now, timestampInSeconds) => {
const date = new Date(timestampInSeconds * 1000);
return differenceInDays(now, date);
};