-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CST] - Remove DurationCard since it is no longer being used in the C…
…ST for appeals (#28836) * remove all code referencing duration card * update code
- Loading branch information
1 parent
19c6d65
commit 25a6ab8
Showing
10 changed files
with
7 additions
and
376 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
src/applications/claims-status/components/appeals-v2/DurationCard.jsx
This file was deleted.
Oops, something went wrong.
17 changes: 2 additions & 15 deletions
17
src/applications/claims-status/components/appeals-v2/NextEvent.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,18 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import DurationCard from './DurationCard'; | ||
|
||
const NextEvent = ({ | ||
title, | ||
description, | ||
durationText, | ||
cardDescription, | ||
showSeparator, | ||
}) => ( | ||
const NextEvent = ({ description, showSeparator, title }) => ( | ||
<li className="next-event"> | ||
<h3>{title}</h3> | ||
<div>{description}</div> | ||
<DurationCard | ||
durationText={durationText} | ||
cardDescription={cardDescription} | ||
/> | ||
{showSeparator && <span className="sidelines">or</span>} | ||
</li> | ||
); | ||
|
||
NextEvent.propTypes = { | ||
title: PropTypes.string.isRequired, | ||
description: PropTypes.element.isRequired, | ||
durationText: PropTypes.string.isRequired, | ||
cardDescription: PropTypes.string.isRequired, | ||
showSeparator: PropTypes.bool.isRequired, | ||
title: PropTypes.string.isRequired, | ||
}; | ||
|
||
export default NextEvent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 0 additions & 44 deletions
44
src/applications/claims-status/tests/components/appeals-v2/Duration.unit.spec.jsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.