Skip to content

Commit

Permalink
feat: adding success toast and button text fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AmanAgarwal041 committed Dec 8, 2024
1 parent 6906071 commit 8c664b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/client/src/ce/constants/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2570,4 +2570,5 @@ export const REQUEST_NEW_INTEGRATIONS = {
NAME: "email",
ERROR: () => "Please enter email",
},
SUCCESS_TOAST_MESSAGE: () => "Thank you! We are looking into your request.",
};
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button, Flex } from "@appsmith/ads";
import { Button, Flex, toast } from "@appsmith/ads";
import { Close } from "@radix-ui/react-dialog";
import { createMessage, REQUEST_NEW_INTEGRATIONS } from "ee/constants/messages";
import type { AppState } from "ee/reducers";
Expand Down Expand Up @@ -31,6 +31,9 @@ const RequestIntegrationForm = (props: RequestIntegrationFormProps) => {
use_case_description: values.useCase || "",
email: values.email,
});
toast.show(createMessage(REQUEST_NEW_INTEGRATIONS.SUCCESS_TOAST_MESSAGE), {
kind: "success",
});
props.closeModal();
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function RequestNewIntegration() {
AnalyticsUtil.logEvent("REQUEST_INTEGRATION_CTA");
}}
>
{createMessage(REQUEST_NEW_INTEGRATIONS.REQUEST_BUTTON)}
{createMessage(REQUEST_NEW_INTEGRATIONS.REQUEST_NEW_BUTTON)}
</Button>
</RequestModal>
</RequestNewIntegrationWrapper>
Expand Down

0 comments on commit 8c664b1

Please sign in to comment.