Skip to content

Commit

Permalink
remove duplicate time element component
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaskikutis committed Jan 14, 2025
1 parent e15d2ae commit 79f9e05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
17 changes: 0 additions & 17 deletions scripts/apps/contacts/components/TimeElem.tsx

This file was deleted.

6 changes: 3 additions & 3 deletions scripts/apps/contacts/components/fields/VersionCreated.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import PropTypes from 'prop-types';
import {TimeElem} from 'apps/contacts/components';
import {TimeElem} from 'apps/search/components';

export const VersionCreated: React.StatelessComponent<any> = ({item, svc}) =>
<TimeElem key="version-created" date={item._updated} svc={svc} />;
export const VersionCreated: React.StatelessComponent<any> = ({item}) =>
<TimeElem key="version-created" date={item._updated} />;

VersionCreated.propTypes = {
item: PropTypes.object,
Expand Down
1 change: 0 additions & 1 deletion scripts/apps/contacts/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export {TimeElem} from './TimeElem';
export {ItemContainer} from './ItemContainer';
export {ListItemInfo} from './ListItemInfo';
export {Item} from './Item';
Expand Down

0 comments on commit 79f9e05

Please sign in to comment.