Updated timezone hook, fixed chart rendering, added icons.

This commit is contained in:
Mike Cao 2024-03-29 16:04:39 -07:00
parent 5a2330ba2a
commit 291562f6c2
14 changed files with 94 additions and 65 deletions

View file

@ -20,16 +20,17 @@ import * as yup from 'yup';
export interface CollectRequestBody {
payload: {
data: { [key: string]: any };
hostname: string;
ip: string;
language: string;
referrer: string;
screen: string;
title: string;
url: string;
website: string;
name: string;
data?: { [key: string]: any };
hostname?: string;
ip?: string;
language?: string;
name?: string;
referrer?: string;
screen?: string;
tag?: string;
title?: string;
url: string;
};
type: CollectionType;
}
@ -72,6 +73,7 @@ const schema = {
url: yup.string(),
website: yup.string().uuid().required(),
name: yup.string().max(50),
tag: yup.string().max(50),
})
.required(),
type: yup