Skip to content

Commit

Permalink
Link Icon
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-gordon committed Jan 9, 2024
1 parent 735dcbd commit 645cba5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/src/components/CloneButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ import { useContext } from "react";
import { AppContext } from "./AppContextProvider";
import { getFunFlowchartName } from "../lib/getFunFlowchartName";
import { languages } from "../locales/i18n";
import { useUserId } from "../lib/hooks";
import { useIsProUser, useUserId } from "../lib/hooks";
import { makeChart, queryClient } from "../lib/queries";
import { useMutation } from "react-query";

export function CloneButton() {
const isProUser = useIsProUser();
const language = useContext(AppContext).language;
const userId = useUserId();
const makeChartMutation = useMutation(
Expand All @@ -34,6 +35,7 @@ export function CloneButton() {
},
}
);
if (!isProUser) return null;
return (
<Button2
color="blue"
Expand Down
4 changes: 2 additions & 2 deletions app/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ export const Header = memo(function SharedHeader() {
<header className="grid-flow-col justify-between items-center px-2 py-1 hidden md:grid bg-[#f6f5f6] dark:bg-[#0c0c0c]">
<NavigationMenu.List asChild>
<nav className="flex gap-1 items-center">
<span className="shared-header__logo mr-2">
<Link to="/" className="shared-header__logo mr-2">
<BrandSvg width={40} />
</span>
</Link>
<NavigationMenu.Item asChild>
<HeaderClientLink
label={t`Editor`}
Expand Down

0 comments on commit 645cba5

Please sign in to comment.