Skip to content

Commit

Permalink
fix: added missing locale changes
Browse files Browse the repository at this point in the history
  • Loading branch information
YourivHDenHaag committed Oct 31, 2024
1 parent 11db93b commit e1f2305
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 18 deletions.
8 changes: 1 addition & 7 deletions components/Action/src/ActionDate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@ interface Props {
labels?: FormatDateLabels;
}

export const ActionDate = ({
dateTime,
now = new Date().toISOString(),
relative = false,
locale = 'nl-NL',
labels,
}: Props) => {
export const ActionDate = ({ dateTime, now = new Date().toISOString(), relative = false, locale, labels }: Props) => {
const [formattedDate, deadline] = formatDate({ dateTime, labels, relative, locale, now });

return (
Expand Down
10 changes: 1 addition & 9 deletions components/Card/src/Card/CaseCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,7 @@ export interface CaseCardProps {
/**
* Primary UI component for user interaction
*/
export const CaseCard = ({
title,
subTitle,
date,
locale = 'nl-NL',
href,
active = true,
Link = BasicLink,
}: CaseCardProps) => {
export const CaseCard = ({ title, subTitle, date, locale, href, active = true, Link = BasicLink }: CaseCardProps) => {
const classNames = clsx('denhaag-case-card', !active && 'denhaag-case-card--archived');
const dateTime = date ? new Date(date) : undefined;

Expand Down
2 changes: 1 addition & 1 deletion components/Card/src/Card/SubjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface SubjectCardProps {
/**
* Primary UI component for user interaction
*/
export const SubjectCard = ({ title, subTitle, date, locale = 'nl-NL', href, Link = BasicLink }: SubjectCardProps) => {
export const SubjectCard = ({ title, subTitle, date, locale, href, Link = BasicLink }: SubjectCardProps) => {
const dateTime = date ? new Date(date) : undefined;

return (
Expand Down
2 changes: 1 addition & 1 deletion components/ContactTimeline/src/ContactTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const ContactTimelineListItem: React.FC<ContactTimelineItemInternalProps> = ({
file,
date,
isoDate,
locale = 'nl-NL',
locale,
sender = '',
labels,
channel,
Expand Down

0 comments on commit e1f2305

Please sign in to comment.