Add new gdpr registries
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -3,6 +3,11 @@ export function formatDatetime(dateString?: string | null): string | undefined {
|
||||
return `${dateString}T00:00:00Z`;
|
||||
}
|
||||
|
||||
export function toDateInput(dateString?: string | null): string {
|
||||
if (!dateString) return '';
|
||||
return dateString.split('T')[0];
|
||||
}
|
||||
|
||||
export function formatDate(dateInput?: string | null): string {
|
||||
if (!dateInput) return '';
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ export {
|
||||
} from "./trustCenterVisibility";
|
||||
export { promisifyMutation } from "./relay";
|
||||
export { fileType, fileSize } from "./file";
|
||||
export { formatDatetime, formatDate } from "./date";
|
||||
export { formatDatetime, formatDate, toDateInput } from "./date";
|
||||
export { getTrustCenterUrl } from "./trustCenter";
|
||||
export { formatError, type GraphQLError } from "./error";
|
||||
export { Role, getAssignableRoles } from "./roles";
|
||||
|
||||
Reference in New Issue
Block a user