diff --git a/app/client/src/constants/messages.ts b/app/client/src/constants/messages.ts index 44d6220819..b91669d6cc 100644 --- a/app/client/src/constants/messages.ts +++ b/app/client/src/constants/messages.ts @@ -174,6 +174,16 @@ export const EDIT_APP = () => `Edit App`; export const FORK_APP = () => `Fork App`; export const SIGN_IN = () => `Sign In`; +// Homepage +export const CREATE_NEW_APPLICATION = () => `Create New`; +export const SEARCH_APPS = () => `Search for apps...`; +export const GETTING_STARTED = () => `GETTING STARTED`; +export const ORGANIZATIONS_HEADING = () => `ORGANIZATIONS`; +export const WELCOME_TOUR = () => `Welcome Tour`; +export const NO_APPS_FOUND = () => + `Whale! Whale! This name doesn't ring a bell!`; + +// Lightning menu export const LIGHTNING_MENU_DATA_API = () => `Use data from an API`; export const LIGHTNING_MENU_DATA_QUERY = () => `Use data from a Query`; export const LIGHTNING_MENU_DATA_TOOLTIP = () => `Quick start data binding`; diff --git a/app/client/src/pages/Applications/index.tsx b/app/client/src/pages/Applications/index.tsx index 6765a73869..d59f54d817 100644 --- a/app/client/src/pages/Applications/index.tsx +++ b/app/client/src/pages/Applications/index.tsx @@ -85,6 +85,16 @@ import { extractAppIdAndPageIdFromUrl, SIGNUP_SUCCESS_URL, } from "constants/routes"; +import { + createMessage, + CREATE_NEW_APPLICATION, + DOCUMENTATION, + GETTING_STARTED, + ORGANIZATIONS_HEADING, + SEARCH_APPS, + WELCOME_TOUR, + NO_APPS_FOUND, +} from "constants/messages"; import { getIsSafeRedirectURL } from "utils/helpers"; import history from "utils/history"; @@ -410,7 +420,7 @@ function LeftPane() { return ( @@ -444,7 +454,7 @@ function LeftPane() {
@@ -456,7 +466,7 @@ function LeftPane() { onSelect={() => { window.open("https://docs.appsmith.com/", "_blank"); }} - text={"Documentation"} + text={createMessage(DOCUMENTATION)} />
@@ -635,7 +645,7 @@ function ApplicationsSection(props: any) { organizationsListComponent = ( - Whale! Whale! this name doesn't ring a bell! + {createMessage(NO_APPS_FOUND)} @@ -845,7 +855,7 @@ function ApplicationsSection(props: any) { className="createnew" type={TextType.H4} > - Create New + {createMessage(CREATE_NEW_APPLICATION)} )} @@ -960,7 +970,7 @@ class Applications extends Component<