Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
rushi committed Dec 23, 2024
1 parent 9ee8f43 commit 3674313
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 20 deletions.
14 changes: 7 additions & 7 deletions src/components/DatePicker/DatePicker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@ export const DatePicker = ({
const CaptionElement = useMemo(() => {
return shouldShowYearPicker && currentMonth
? ({ date }) => (
<MonthYearSelector
date={date}
currentMonth={currentMonth}
locale={locale ?? contextLocale}
onChange={handleMonthChange}
/>
)
<MonthYearSelector
date={date}
currentMonth={currentMonth}
locale={locale ?? contextLocale}
onChange={handleMonthChange}
/>
)
: undefined;
// Adding `handleMonthChange` causes a lot of re-renders, and closes drop-down.
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down
4 changes: 2 additions & 2 deletions src/components/DatePicker/RangeDatePicker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const RangeDatePicker = ({
const createCaptionElement = (currentMonth, handleChange) =>
shouldShowYearPicker && currentMonth
? ({ date }) => (
<MonthYearSelector date={date} currentMonth={currentMonth} locale={locale} onChange={handleChange} />
)
<MonthYearSelector date={date} currentMonth={currentMonth} locale={locale} onChange={handleChange} />
)
: undefined;

const CaptionStartElement = createCaptionElement(startMonth, handleStartMonthChange);
Expand Down
4 changes: 3 additions & 1 deletion src/components/Drawer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ export const Drawer = forwardRef(
{/* eslint-disable-next-line react/jsx-max-depth */}
<Dialog.Title>{title}</Dialog.Title>
</div>
<div className={cn("ui-drawer-body relative mt-3 flex-1", classNames.content)}>{content}</div>
<div className={cn("ui-drawer-body relative mt-3 flex-1", classNames.content)}>
{content}
</div>
</div>

{position === "left" ? <CloseButton onClose={onClose} /> : null}
Expand Down
1 change: 0 additions & 1 deletion src/components/Sidebar/Sidebar.Link.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export const SidebarLink = ({ isActive = false, icon: Icon, children, isSubMenuI
</span>

{isSubMenuItem ? null : <ChevronRightIcon className="ml-auto hidden h-3 w-3 xl:inline" />}

</button>
);
};
Expand Down
6 changes: 3 additions & 3 deletions src/icons/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ export default defineConfig({
entry: path.resolve(__dirname, "./index.js"),
name: "XolaIcons",
fileName: (format) => `icons.${format}.js`,
formats: ["es"]
formats: ["es"],
},

rollupOptions: {
// Make sure none of the dependencies are bundled.
external: dependencies,
}
}
},
},
});
12 changes: 11 additions & 1 deletion src/stories/Navigation/Sidebar.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
import React, { useState } from "react";
import { AnnounceIcon, CheckIcon, HelpCenterIcon, LogoutIcon, PiggyBankIcon, PolicyIcon, Sidebar, StarIcon, UserIcon } from "../..";
import {
AnnounceIcon,
CheckIcon,
HelpCenterIcon,
LogoutIcon,
PiggyBankIcon,
PolicyIcon,
Sidebar,
StarIcon,
UserIcon,
} from "../..";

const SidebarStories = {
title: "Navigation/Sidebar",
Expand Down
10 changes: 5 additions & 5 deletions src/utils/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from "./avatar.js"
export * from "./currency.js"
export * from "./date.js"
export * from "./numbers.js"
export * from "./phone.js"
export * from "./avatar.js";
export * from "./currency.js";
export * from "./date.js";
export * from "./numbers.js";
export * from "./phone.js";

0 comments on commit 3674313

Please sign in to comment.