mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 12:43:11 +10:00
Rename transition check function
This commit is contained in:
parent
3b909ad426
commit
03696b5607
1 changed files with 2 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ Review.propTypes = {
|
|||
|
||||
// Check if a transition is the kind that
|
||||
// should be rendered in he ActivityFeed
|
||||
const isTransitionRendered = transition => {
|
||||
const shouldRenderTransition = transition => {
|
||||
return [
|
||||
propTypes.TX_TRANSITION_PREAUTHORIZE,
|
||||
propTypes.TX_TRANSITION_ACCEPT,
|
||||
|
|
@ -386,7 +386,7 @@ export const ActivityFeedComponent = props => {
|
|||
};
|
||||
|
||||
const transitionListItem = transition => {
|
||||
if (isTransitionRendered(transition.transition)) {
|
||||
if (shouldRenderTransition(transition.transition)) {
|
||||
return (
|
||||
<li key={transition.transition} className={css.transitionItem}>
|
||||
{transitionComponent(transition)}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue