diff --git a/app/client/src/ce/constants/messages.ts b/app/client/src/ce/constants/messages.ts
index 3cfe9ce717..6a4f2ab346 100644
--- a/app/client/src/ce/constants/messages.ts
+++ b/app/client/src/ce/constants/messages.ts
@@ -165,6 +165,7 @@ export const USERS_HAVE_ACCESS_TO_ALL_APPS = () =>
"Users will have access to all applications in this workspace";
export const USERS_HAVE_ACCESS_TO_ONLY_THIS_APP = () =>
"Users will only have access to this application";
+export const NO_USERS_INVITED = () => "You haven't invited any users yet";
export const CREATE_PASSWORD_RESET_SUCCESS = () => `Your password has been set`;
export const CREATE_PASSWORD_RESET_SUCCESS_LOGIN_LINK = () => `Login`;
diff --git a/app/client/src/ce/pages/workspace/WorkspaceInviteUsersForm.tsx b/app/client/src/ce/pages/workspace/WorkspaceInviteUsersForm.tsx
index 0a61e2c223..199ce6250c 100644
--- a/app/client/src/ce/pages/workspace/WorkspaceInviteUsersForm.tsx
+++ b/app/client/src/ce/pages/workspace/WorkspaceInviteUsersForm.tsx
@@ -33,6 +33,7 @@ import {
INVITE_USERS_VALIDATION_EMAIL_LIST,
INVITE_USERS_VALIDATION_ROLE_EMPTY,
USERS_HAVE_ACCESS_TO_ALL_APPS,
+ NO_USERS_INVITED,
} from "@appsmith/constants/messages";
import { isEmail } from "utils/formhelpers";
import {
@@ -69,7 +70,7 @@ import { isEllipsisActive } from "utils/helpers";
import { USER_PHOTO_ASSET_URL } from "constants/userConstants";
import type { WorkspaceUserRoles } from "@appsmith/constants/workspaceConstants";
-const { cloudHosting, mailEnabled } = getAppsmithConfigs();
+const { cloudHosting } = getAppsmithConfigs();
export const CommonTitleTextStyle = css`
color: ${Colors.CHARCOAL};
@@ -207,11 +208,6 @@ export const MailConfigContainer = styled.div`
font-weight: 500;
font-size: 14px;
}
- && > a {
- color: ${(props) => props.theme.colors.modal.email.desc};
- font-size: 12px;
- text-decoration: underline;
- }
`;
export const LabelText = styled(Text)`
@@ -334,7 +330,6 @@ function WorkspaceInviteUsersForm(props: any) {
const {
allUsers,
anyTouched,
- disableEmailSetup = false,
disableManageUsers = false,
disableUserList = false,
error,
@@ -520,17 +515,10 @@ function WorkspaceInviteUsersForm(props: any) {
) : (
<>
- {!mailEnabled && !disableEmailSetup && (
+ {allUsers.length === 0 && (
- {allUsers.length === 0 && }
- You haven’t setup any email service yet
-
- Please configure your email service to invite people
-
+
+ {createMessage(NO_USERS_INVITED)}
)}
{!disableUserList && (