Skip to content

Commit

Permalink
chore: adding ff
Browse files Browse the repository at this point in the history
  • Loading branch information
brayn003 committed Dec 16, 2024
1 parent 56f05cf commit 52b5c4f
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 52 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import {
CONFIGURE_CD_DESC,
CONFIGURE_CD_TITLE,
TRY_APPSMITH_ENTERPRISE,
createMessage,
} from "ee/constants/messages";
import { Button, Text } from "@appsmith/ads";
import { useAppsmithEnterpriseLink } from "pages/Editor/gitSync/GitSettingsModal/TabBranch/hooks";
import React from "react";
import styled from "styled-components";

export const Container = styled.div`
padding-top: 8px;
padding-bottom: 16px;
overflow: auto;
min-height: calc(360px + 52px);
`;

export const SectionTitle = styled(Text)`
font-weight: 600;
margin-bottom: 4px;
`;

export const SectionDesc = styled(Text)`
margin-bottom: 12px;
`;

export const StyledButton = styled(Button)`
display: inline-block;
`;

function CDUnLicnesed() {
const enterprisePricingLink = useAppsmithEnterpriseLink(
"git_continuous_delivery",
);

return (
<Container>
<SectionTitle kind="heading-s" renderAs="h3">
{createMessage(CONFIGURE_CD_TITLE)}
</SectionTitle>
<SectionDesc kind="body-m" renderAs="p">
{createMessage(CONFIGURE_CD_DESC)}
</SectionDesc>
<StyledButton
href={enterprisePricingLink}
kind="primary"
renderAs="a"
size="md"
target="_blank"
>
{createMessage(TRY_APPSMITH_ENTERPRISE)}
</StyledButton>
</Container>
);
}

export default CDUnLicnesed;
54 changes: 2 additions & 52 deletions app/client/src/git/ce/components/ContinuousDelivery/index.tsx
Original file line number Diff line number Diff line change
@@ -1,58 +1,8 @@
import {
CONFIGURE_CD_DESC,
CONFIGURE_CD_TITLE,
TRY_APPSMITH_ENTERPRISE,
createMessage,
} from "ee/constants/messages";
import { Button, Text } from "@appsmith/ads";
import { useAppsmithEnterpriseLink } from "pages/Editor/gitSync/GitSettingsModal/TabBranch/hooks";
import React from "react";
import styled from "styled-components";

export const Container = styled.div`
padding-top: 8px;
padding-bottom: 16px;
overflow: auto;
min-height: calc(360px + 52px);
`;

export const SectionTitle = styled(Text)`
font-weight: 600;
margin-bottom: 4px;
`;

export const SectionDesc = styled(Text)`
margin-bottom: 12px;
`;

export const StyledButton = styled(Button)`
display: inline-block;
`;
import CDUnLicnesed from "./CDUnLicensed";

function ContinuousDelivery() {
const enterprisePricingLink = useAppsmithEnterpriseLink(
"git_continuous_delivery",
);

return (
<Container>
<SectionTitle kind="heading-s" renderAs="h3">
{createMessage(CONFIGURE_CD_TITLE)}
</SectionTitle>
<SectionDesc kind="body-m" renderAs="p">
{createMessage(CONFIGURE_CD_DESC)}
</SectionDesc>
<StyledButton
href={enterprisePricingLink}
kind="primary"
renderAs="a"
size="md"
target="_blank"
>
{createMessage(TRY_APPSMITH_ENTERPRISE)}
</StyledButton>
</Container>
);
return <CDUnLicnesed />;
}

export default ContinuousDelivery;

0 comments on commit 52b5c4f

Please sign in to comment.