Skip to content

Commit

Permalink
🧹 Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rushi committed Feb 18, 2024
1 parent 80d54d9 commit bd65f0f
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/components/Alert.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import clsx from "clsx";
import PropTypes from "prop-types";
import React from "react";
import { CloseIcon } from "../icons/";
import { CloseIcon } from "../icons";

const colors = {
primary: "bg-primary-lighter text-black",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Buttons/SubmitButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import clsx from "clsx";
import PropTypes from "prop-types";
import React, { useState, useEffect } from "react";
import { Spinner } from "../Spinner";
import { CheckIcon } from "../../icons/";
import { CheckIcon } from "../../icons";
import { Button, colors } from "./Button";

const loadingColors = {
Expand Down
3 changes: 1 addition & 2 deletions src/components/DatePicker/NavbarElement.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import clsx from "clsx";
import PropTypes from "prop-types";
import React from "react";
import { ChevronLeftIcon } from "../../icons/";
import { ChevronRightIcon } from "../../icons/";
import { ChevronLeftIcon, ChevronRightIcon } from "../../icons";

/**
* Render the custom left & right arrows to change the current month.
Expand Down
2 changes: 1 addition & 1 deletion src/components/Drawer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Dialog, Transition } from "@headlessui/react";
import clsx from "clsx";
import PropTypes from "prop-types";
import React, { Fragment } from "react";
import { CloseIcon } from "../icons/";
import { CloseIcon } from "../icons";
import { Button } from "./Buttons/Button";

const sizes = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Dialog, Transition } from "@headlessui/react";
import clsx from "clsx";
import PropTypes from "prop-types";
import React, { Fragment } from "react";
import { CloseIcon } from "../icons/";
import { CloseIcon } from "../icons";

const sizes = {
small: "max-w-100", // 400px
Expand Down
2 changes: 1 addition & 1 deletion src/components/Screens/Login.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PropTypes from "prop-types";
import React, { useState } from "react";
import { XolaLogoSimple } from "../../icons/";
import { XolaLogoSimple } from "../../icons";
import { Alert } from "../Alert";
import { Button } from "../Buttons/Button";
import { Checkbox } from "../Forms/Checkbox";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useHotkeys } from "react-hotkeys-hook";
import { isOSX } from "../helpers/browser";
import { useId } from "../hooks/useId";
import { useIsClient } from "../hooks/useIsClient";
import { SearchIcon } from "../icons/";
import { SearchIcon } from "../icons";
import { Key } from "./Key";
import { Spinner } from "./Spinner";

Expand Down
2 changes: 1 addition & 1 deletion src/components/Sidebar/Sidebar.Account.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import clsx from "clsx";
import PropTypes from "prop-types";
import React from "react";
import { ChevronRightIcon } from "../../icons/";
import { ChevronRightIcon } from "../../icons";
import { Avatar } from "../Avatar";

export const SidebarAccount = ({
Expand Down
2 changes: 1 addition & 1 deletion src/components/Sidebar/Sidebar.Link.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import clsx from "clsx";
import PropTypes from "prop-types";
import React from "react";
import { ChevronRightIcon } from "../../icons/";
import { ChevronRightIcon } from "../../icons";
import { Dot } from "../Dot/Dot";

export const SidebarLink = ({ isActive = false, icon: Icon, children, isSubMenuItem, ...rest }) => {
Expand Down
4 changes: 1 addition & 3 deletions src/components/Sidebar/Sidebar.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import clsx from "clsx";
import PropTypes from "prop-types";
import React from "react";
import { AnnounceIcon } from "../../icons/";
import { BellIcon } from "../../icons/";
import { XolaLogoSimple } from "../../icons/";
import { AnnounceIcon, BellIcon, XolaLogoSimple } from "../../icons";
import { Counter } from "../Counter";
import { Drawer } from "../Drawer";
import { SidebarAccount } from "./Sidebar.Account";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Spinner.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import clsx from "clsx";
import PropTypes from "prop-types";
import { CircleNotch } from "../icons/";
import { CircleNotch } from "../icons";

const colors = {
primary: "text-primary",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tag.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import clsx from "clsx";
import PropTypes from "prop-types";
import React from "react";
import { CloseIcon } from "../icons/";
import { CloseIcon } from "../icons";

const colors = {
primary: "bg-primary-lighter text-black border border-primary",
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/flash.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Transition } from "@headlessui/react";
import clsx from "clsx";
import React, { Fragment } from "react";
import toast from "react-hot-toast";
import { CloseIcon } from "../icons/";
import { CloseIcon } from "../icons";

const colors = {
primary: "bg-primary",
Expand Down

0 comments on commit bd65f0f

Please sign in to comment.