Skip to content

Commit

Permalink
feat(Timeline): deprecate name and date props (#1884)
Browse files Browse the repository at this point in the history
  • Loading branch information
langz authored and tujoworker committed Feb 9, 2023
1 parent 0a295e6 commit ae45f4a
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions packages/dnb-eufemia/src/components/timeline/TimelineItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,6 @@ export interface TimelineItemProps {
* Default: null
*/
skeleton?: SkeletonShow

/**
* @deprecated Please use `title`
*/
name?: unknown

/**
* @deprecated Please use `subtitle`
*/
date?: unknown
}

const defaultProps = {
Expand Down Expand Up @@ -98,17 +88,6 @@ const TimelineItem = (localProps: TimelineItemProps) => {
{ skeleton: context?.skeleton }
)

// deprecated
if (allProps.name) {
delete allProps.name
allProps.title = allProps.name
}
// deprecated
if (allProps.date) {
delete allProps.date
allProps.subtitle = allProps.date
}

const {
icon,
iconAlt,
Expand Down

0 comments on commit ae45f4a

Please sign in to comment.