mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-16 01:32:02 +10:00
fix(client): 🐛 do not allow private resumes to be viewable or downloadable through the link
This commit is contained in:
@ -24,7 +24,7 @@ export const dateFormatOptions: string[] = [
|
||||
export const getRelativeTime = (timestamp: dayjs.ConfigType): string => dayjs(timestamp).toNow(true);
|
||||
|
||||
export const formatDateString = (date: string | DateRange, formatStr: string): string | null => {
|
||||
const presentString = i18n?.t<string>('common.date.present') ?? '';
|
||||
const presentString = i18n?.t('common.date.present') ?? '';
|
||||
|
||||
if (isEmpty(date)) return null;
|
||||
|
||||
|
||||
@ -1,8 +1,21 @@
|
||||
import { ThemeConfig, Typography } from 'schema';
|
||||
import clsx, { ClassValue } from 'clsx';
|
||||
import { RgbColor } from 'react-colorful';
|
||||
import { ThemeConfig, Typography } from 'schema';
|
||||
import { twMerge } from 'tailwind-merge';
|
||||
|
||||
import { hexColorPattern } from '@/config/colors';
|
||||
|
||||
export const breakpoints = {
|
||||
xs: 0,
|
||||
sm: 640,
|
||||
md: 768,
|
||||
lg: 1024,
|
||||
xl: 1280,
|
||||
'2xl': 1400,
|
||||
};
|
||||
|
||||
export const cn = (...inputs: ClassValue[]) => twMerge(clsx(inputs));
|
||||
|
||||
export const generateTypographyStyles = ({ family, size }: Typography): string => `
|
||||
font-size: ${size.body}px !important;
|
||||
font-family: ${family.body} !important;
|
||||
|
||||
Reference in New Issue
Block a user