Skip to content

Commit

Permalink
Add ToDo, use term instead of t for mapped variable
Browse files Browse the repository at this point in the history
  • Loading branch information
alecgeatches committed Aug 29, 2024
1 parent 047bcce commit 240034c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/custom-status/lib/custom-status-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const CustomSaveButtonSidebar = ( {
{ /* Custom save button in the toolbar */ }
{ isCustomSaveButtonVisible && (
<PluginSidebar name={ sidebarName } title={ buttonText } icon={ InnerSaveButton }>
{ /* Use this space to show approve/reject UI or other sidebar controls */ }
{ /* ToDo: Use this space to show approve/reject UI or other sidebar controls */ }
{ null }
</PluginSidebar>
) }
Expand Down Expand Up @@ -194,7 +194,9 @@ const getCustomSaveButtonText = ( nextStatusTerm, isWideViewport ) => {
};

const getNextStatusTerm = currentStatus => {
const currentIndex = VW_CUSTOM_STATUSES.status_terms.findIndex( t => t.slug === currentStatus );
const currentIndex = VW_CUSTOM_STATUSES.status_terms.findIndex(
term => term.slug === currentStatus
);

if ( -1 === currentIndex || currentIndex === VW_CUSTOM_STATUSES.status_terms.length - 1 ) {
return false;
Expand Down

0 comments on commit 240034c

Please sign in to comment.