Skip to content

Commit 3674313

Browse files
committed
Prettier
1 parent 9ee8f43 commit 3674313

File tree

7 files changed

+31
-20
lines changed

7 files changed

+31
-20
lines changed

src/components/DatePicker/DatePicker.jsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,13 @@ export const DatePicker = ({
188188
const CaptionElement = useMemo(() => {
189189
return shouldShowYearPicker && currentMonth
190190
? ({ date }) => (
191-
<MonthYearSelector
192-
date={date}
193-
currentMonth={currentMonth}
194-
locale={locale ?? contextLocale}
195-
onChange={handleMonthChange}
196-
/>
197-
)
191+
<MonthYearSelector
192+
date={date}
193+
currentMonth={currentMonth}
194+
locale={locale ?? contextLocale}
195+
onChange={handleMonthChange}
196+
/>
197+
)
198198
: undefined;
199199
// Adding `handleMonthChange` causes a lot of re-renders, and closes drop-down.
200200
// eslint-disable-next-line react-hooks/exhaustive-deps

src/components/DatePicker/RangeDatePicker.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ const RangeDatePicker = ({
3434
const createCaptionElement = (currentMonth, handleChange) =>
3535
shouldShowYearPicker && currentMonth
3636
? ({ date }) => (
37-
<MonthYearSelector date={date} currentMonth={currentMonth} locale={locale} onChange={handleChange} />
38-
)
37+
<MonthYearSelector date={date} currentMonth={currentMonth} locale={locale} onChange={handleChange} />
38+
)
3939
: undefined;
4040

4141
const CaptionStartElement = createCaptionElement(startMonth, handleStartMonthChange);

src/components/Drawer.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ export const Drawer = forwardRef(
8080
{/* eslint-disable-next-line react/jsx-max-depth */}
8181
<Dialog.Title>{title}</Dialog.Title>
8282
</div>
83-
<div className={cn("ui-drawer-body relative mt-3 flex-1", classNames.content)}>{content}</div>
83+
<div className={cn("ui-drawer-body relative mt-3 flex-1", classNames.content)}>
84+
{content}
85+
</div>
8486
</div>
8587

8688
{position === "left" ? <CloseButton onClose={onClose} /> : null}

src/components/Sidebar/Sidebar.Link.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export const SidebarLink = ({ isActive = false, icon: Icon, children, isSubMenuI
3939
</span>
4040

4141
{isSubMenuItem ? null : <ChevronRightIcon className="ml-auto hidden h-3 w-3 xl:inline" />}
42-
4342
</button>
4443
);
4544
};

src/icons/vite.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ export default defineConfig({
1212
entry: path.resolve(__dirname, "./index.js"),
1313
name: "XolaIcons",
1414
fileName: (format) => `icons.${format}.js`,
15-
formats: ["es"]
15+
formats: ["es"],
1616
},
1717

1818
rollupOptions: {
1919
// Make sure none of the dependencies are bundled.
2020
external: dependencies,
21-
}
22-
}
21+
},
22+
},
2323
});

src/stories/Navigation/Sidebar.stories.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
import React, { useState } from "react";
2-
import { AnnounceIcon, CheckIcon, HelpCenterIcon, LogoutIcon, PiggyBankIcon, PolicyIcon, Sidebar, StarIcon, UserIcon } from "../..";
2+
import {
3+
AnnounceIcon,
4+
CheckIcon,
5+
HelpCenterIcon,
6+
LogoutIcon,
7+
PiggyBankIcon,
8+
PolicyIcon,
9+
Sidebar,
10+
StarIcon,
11+
UserIcon,
12+
} from "../..";
313

414
const SidebarStories = {
515
title: "Navigation/Sidebar",

src/utils/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export * from "./avatar.js"
2-
export * from "./currency.js"
3-
export * from "./date.js"
4-
export * from "./numbers.js"
5-
export * from "./phone.js"
1+
export * from "./avatar.js";
2+
export * from "./currency.js";
3+
export * from "./date.js";
4+
export * from "./numbers.js";
5+
export * from "./phone.js";

0 commit comments

Comments
 (0)