Skip to content

Commit

Permalink
add draft indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
constantgillet committed Apr 23, 2024
1 parent 05dfb41 commit 5674c51
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions app/components/TopBar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { css } from "styled-system/css";
import { Icon } from "./Icon";
import { Button, Callout, Dialog, IconButton, Tooltip } from "@radix-ui/themes";
import {
Badge,
Button,
Callout,
Dialog,
IconButton,
Tooltip,
} from "@radix-ui/themes";
import { Tool, useEditorStore } from "../stores/EditorStore";

import { ValidatedForm, useFormContext } from "remix-validated-form";
Expand Down Expand Up @@ -128,8 +135,10 @@ export const TopBar = ({ initalName, templateId }: TopBarProps) => {
})}
>
<SaveTreeIndicator templateId={templateId} />
<Button variant="outline">Use image</Button>
<Button>Deploy</Button>
<Tooltip content="Click on the Deploy button for setting it in production">
<Badge color="gray">Draft</Badge>
</Tooltip>
<Button>Deploy to prod</Button>
</div>
</div>
</header>
Expand Down Expand Up @@ -189,6 +198,13 @@ const TemplateNameButton = ({
{templateName}
</button>
</Dialog.Trigger>
<Badge
className={css({
userSelect: "text!important",
})}
>
{templateId}
</Badge>
<Dialog.Content style={{ maxWidth: 460 }}>
<Dialog.Title>Edit template name</Dialog.Title>
<ValidatedForm
Expand Down

0 comments on commit 5674c51

Please sign in to comment.