TP-36903 | Empty View Text changes
This commit is contained in:
@@ -181,6 +181,7 @@ const CasesList: React.FC<ICasesList> = ({ casesList = [], isVisitPlan, isAgentD
|
||||
<EmptyList
|
||||
message={getEmptyListMessage()}
|
||||
isVisitPlan={isVisitPlan}
|
||||
isAgentDashboard={isAgentDashboard}
|
||||
isFilterApplied={isFilterApplied}
|
||||
subMessage={getSubMessage()}
|
||||
isLockedVisitPlanStatus={isLockedVisitPlanStatus}
|
||||
|
||||
@@ -15,6 +15,7 @@ interface IEmptyList {
|
||||
isVisitPlan?: boolean;
|
||||
isFilterApplied?: boolean;
|
||||
isLockedVisitPlanStatus?: boolean;
|
||||
isAgentDashboard?: boolean;
|
||||
}
|
||||
|
||||
const EmptyList: React.FC<IEmptyList> = ({
|
||||
@@ -23,6 +24,7 @@ const EmptyList: React.FC<IEmptyList> = ({
|
||||
isFilterApplied,
|
||||
subMessage,
|
||||
isLockedVisitPlanStatus,
|
||||
isAgentDashboard,
|
||||
}) => {
|
||||
const handleCreateVisitPlan = () => {
|
||||
navigateToScreen('Cases');
|
||||
@@ -51,7 +53,7 @@ const EmptyList: React.FC<IEmptyList> = ({
|
||||
>
|
||||
{message}
|
||||
</Heading>
|
||||
{subMessage ? (
|
||||
{subMessage && !isAgentDashboard ? (
|
||||
<Text small light style={[GenericStyles.centerAlignedText, styles.subTextStyle]}>
|
||||
{subMessage}
|
||||
</Text>
|
||||
|
||||
Reference in New Issue
Block a user