Skip to content

Commit

Permalink
feat: update upgrade texts
Browse files Browse the repository at this point in the history
  • Loading branch information
AykutSarac committed Dec 7, 2024
1 parent d614bf9 commit e67801c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/containers/Modals/UpgradeModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
size="md"
radius="md"
>
Upgrade to ToDiagram
Try premium for free
</Button>
<Button size="md" variant="subtle" color="gray" radius="md" onClick={onClose}>
Maybe later
Expand Down
20 changes: 11 additions & 9 deletions src/containers/Toolbar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { Text, Flex, Group, Select } from "@mantine/core";
import { Flex, Group, Select, Button } from "@mantine/core";
import styled from "styled-components";
import toast from "react-hot-toast";
import { AiOutlineFullscreen } from "react-icons/ai";
Expand Down Expand Up @@ -86,14 +86,16 @@ export const Toolbar = ({ isWidget = false }: ToolbarProps) => {
)}
<Group gap="xs" justify="right" w="100%" style={{ flexWrap: "nowrap" }}>
{!isWidget && (
<StyledToolElement onClick={() => setVisible("upgrade")(true)} $highlight>
<Flex align="center" gap="6">
<LuCrown size="16" />
<Text c="bright" fw={600} fz="xs">
Unlock advanced features
</Text>
</Flex>
</StyledToolElement>
<Button
color="gray"
variant="light"
size="compact-sm"
fz="12"
onClick={() => setVisible("upgrade")(true)}
leftSection={<LuCrown />}
>
Try premium for free
</Button>
)}

<SearchInput />
Expand Down

0 comments on commit e67801c

Please sign in to comment.