Skip to content

Commit

Permalink
[OPIK-706] remove close get-started section button (#1100)
Browse files Browse the repository at this point in the history
* [OPIK-706] remove close get-started section button

* [OPIK-706] fix linter

---------

Co-authored-by: Yaroslav Boiko <[email protected]>
  • Loading branch information
awkoy and Yaroslav Boiko authored Jan 21, 2025
1 parent ba5b38e commit 0619865
Showing 1 changed file with 1 addition and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,27 +1,17 @@
import React, { useState } from "react";
import { FlaskConical, InspectionPanel, MousePointer, X } from "lucide-react";
import useLocalStorageState from "use-local-storage-state";
import { Button } from "@/components/ui/button";
import { FlaskConical, InspectionPanel, MousePointer } from "lucide-react";
import useAppStore from "@/store/AppStore";
import { buildDocsUrl } from "@/lib/utils";
import AddExperimentDialog from "../ExperimentsShared/AddExperimentDialog";
import { Link } from "@tanstack/react-router";

const GetStartedSection = () => {
const workspaceName = useAppStore((state) => state.activeWorkspaceName);
const [hide, setHide] = useLocalStorageState<boolean>(
"home-get-started-section",
{
defaultValue: false,
},
);
const [isNewExperimentDialogOpened, setIsNewExperimentDialogOpened] =
useState<boolean>(false);

const openNewExperimentDialog = () => setIsNewExperimentDialogOpened(true);

if (hide) return null;

return (
<div>
<div className="flex items-center justify-between gap-8 pb-4 pt-2">
Expand All @@ -30,15 +20,6 @@ const GetStartedSection = () => {
Get started
</h2>
</div>
<div className="flex items-center gap-2">
<Button
variant="minimal"
size="icon-xs"
onClick={() => setHide(true)}
>
<X className="size-4" />
</Button>
</div>
</div>
<div className="flex gap-x-4">
<a
Expand Down

0 comments on commit 0619865

Please sign in to comment.