Rename showCustomerEffortScore prop

This commit is contained in:
Lourens Schep 2022-05-17 14:25:06 -03:00
parent 5494f4970d
commit 23d64d0bc2
3 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ import HeaderImage from './completed-celebration-header.svg';
type TaskListCompletedHeaderProps = {
hideTasks: () => void;
keepTasks: () => void;
showCustomerEffortScore: boolean;
customerEffortScore: boolean;
};
const ADMIN_INSTALL_TIMESTAMP_OPTION_NAME =
@ -49,7 +49,7 @@ function getStoreAgeInWeeks( adminInstallTimestamp: number ) {
export const TaskListCompletedHeader: React.FC< TaskListCompletedHeaderProps > = ( {
hideTasks,
keepTasks,
showCustomerEffortScore,
customerEffortScore,
} ) => {
const { updateOptions } = useDispatch( OPTIONS_STORE_NAME );
const [ showCesModal, setShowCesModal ] = useState( false );
@ -67,7 +67,7 @@ export const TaskListCompletedHeader: React.FC< TaskListCompletedHeaderProps > =
OPTIONS_STORE_NAME
);
if ( showCustomerEffortScore ) {
if ( customerEffortScore ) {
const allowTracking = getOption( ALLOW_TRACKING_OPTION_NAME );
const adminInstallTimestamp: number =
getOption( ADMIN_INSTALL_TIMESTAMP_OPTION_NAME ) || 0;

View File

@ -124,7 +124,7 @@ export const SectionedTaskList: React.FC< TaskListProps > = ( {
<TaskListCompletedHeader
hideTasks={ hideTasks }
keepTasks={ keepTasks }
showCustomerEffortScore={ true }
customerEffortScore={ true }
/>
) : (
<TaskListCompleted

View File

@ -234,7 +234,7 @@ export const TaskList: React.FC< TaskListProps > = ( {
<TaskListCompletedHeader
hideTasks={ hideTasks }
keepTasks={ keepTasks }
showCustomerEffortScore={ true }
customerEffortScore={ true }
/>
) : (
<TaskListCompleted