Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jsartisan committed Nov 20, 2024
1 parent 815391c commit a8170df
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import clsx from "clsx";
import * as React from "react";
import { type Ref, useRef } from "react";
import { type Ref, useRef, useState } from "react";
import { CSSTransition } from "react-transition-group";

import { Sheet } from "../../Sheet";
import { useSidebar } from "./use-sidebar";
import styles from "./styles.module.css";
import { useSidebar } from "./use-sidebar";
import type { SidebarProps } from "./types";
import { CSSTransition } from "react-transition-group";

import { SidebarContent } from "./SidebarContent";

const _Sidebar = (props: SidebarProps, ref: Ref<HTMLDivElement>) => {
Expand All @@ -22,7 +24,7 @@ const _Sidebar = (props: SidebarProps, ref: Ref<HTMLDivElement>) => {
variant = "sidebar",
...rest
} = props;
const [isAnimating, setIsAnimating] = React.useState(false);
const [isAnimating, setIsAnimating] = useState(false);
const { isMobile, setState, state } = useSidebar();
const sidebarRef = useRef<HTMLDivElement>();

Expand Down

0 comments on commit a8170df

Please sign in to comment.