Skip to content

Commit 4f7ee44

Browse files
committed
chore: format code
1 parent 64f8f12 commit 4f7ee44

26 files changed

+183
-212
lines changed

src/__tests__/sample.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { describe, it, expect } from "vitest";
1+
import { describe, it, expect } from "vitest"
22

33
describe("Sample Test", () => {
44
it("should pass", () => {
5-
expect(true).toBe(true);
6-
});
7-
});
5+
expect(true).toBe(true)
6+
})
7+
})

src/components/AppSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Bitcoin, Home, Inbox, Settings, InfoIcon } from "lucide-react"
2-
import { NavLink } from "react-router";
2+
import { NavLink } from "react-router"
33

44
import {
55
Sidebar,

src/components/BalanceChart.tsx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ const config = {
55
bitcoin: {
66
label: "Bitcoin",
77
color: "#2563eb",
8-
}
8+
},
99
} satisfies ChartConfig
1010

1111
export function BalanceChart() {
1212
const data = [
13-
{ month: "January", bitcoin: 186, },
14-
{ month: "February", bitcoin: 305, },
15-
{ month: "March", bitcoin: 237, },
13+
{ month: "January", bitcoin: 186 },
14+
{ month: "February", bitcoin: 305 },
15+
{ month: "March", bitcoin: 237 },
1616
{ month: "April", bitcoin: 73 },
1717
{ month: "May", bitcoin: 209 },
1818
{ month: "June", bitcoin: 214 },
@@ -35,12 +35,7 @@ export function BalanceChart() {
3535
axisLine={false}
3636
tickFormatter={(value: string) => value.slice(0, 3)}
3737
/>
38-
<YAxis
39-
dataKey="bitcoin"
40-
tickLine={false}
41-
tickMargin={10}
42-
axisLine={false}
43-
/>
38+
<YAxis dataKey="bitcoin" tickLine={false} tickMargin={10} axisLine={false} />
4439
<Bar dataKey="bitcoin" fill="var(--color-bitcoin)" radius={4} />
4540
<ChartLegend content={<ChartLegendContent />} />
4641
</BarChart>

src/components/Breadcrumbs.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
import { PropsWithChildren } from "react";
2-
import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "@/components/ui/breadcrumb";
3-
import { Link } from "react-router";
1+
import { PropsWithChildren } from "react"
2+
import {
3+
Breadcrumb,
4+
BreadcrumbItem,
5+
BreadcrumbLink,
6+
BreadcrumbList,
7+
BreadcrumbPage,
8+
BreadcrumbSeparator,
9+
} from "@/components/ui/breadcrumb"
10+
import { Link } from "react-router"
411

512
export function Breadcrumbs({ children }: PropsWithChildren<unknown>) {
613
return (

src/components/Headings.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
import { PropsWithChildren } from "react";
1+
import { PropsWithChildren } from "react"
22

33
export function H2({ children }: PropsWithChildren<unknown>) {
4-
return (
5-
<h2 className="scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl">
6-
{children}
7-
</h2>
8-
)
4+
return <h2 className="scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl">{children}</h2>
95
}
106

117
export function H3({ children }: PropsWithChildren<unknown>) {
12-
return (
13-
<h3 className="scroll-m-20 text-3xl font-extrabold tracking-tight lg:text-4xl">
14-
{children}
15-
</h3>
16-
)
8+
return <h3 className="scroll-m-20 text-3xl font-extrabold tracking-tight lg:text-4xl">{children}</h3>
179
}

src/components/PageTitle.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
import { PropsWithChildren } from "react";
2-
import { H2 } from "./Headings";
1+
import { PropsWithChildren } from "react"
2+
import { H2 } from "./Headings"
33

44
export function PageTitle({ children }: PropsWithChildren<unknown>) {
5-
return (
6-
<H2>
7-
{children}
8-
</H2>
9-
)
5+
return <H2>{children}</H2>
106
}

src/constants/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import meta from "@/constants/meta";
1+
import meta from "@/constants/meta"
22

3-
export const API_URL = meta.apiBaseUrl;
3+
export const API_URL = meta.apiBaseUrl

src/constants/endpoints.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const CREDIT_QUOTES_BY_ID = "/v1/credit/mint/quote/:id"
1111
export {
1212
INFO,
1313
BALANCES,
14-
1514
ADMIN_QUOTE_PENDING,
1615
ADMIN_QUOTE_ACCEPTED,
1716
ADMIN_QUOTE_BY_ID,

src/constants/meta.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
21
export default {
32
devModeEnabled: import.meta.env.DEV,
43
apiBaseUrl: import.meta.env.VITE_API_BASE_URL as string,
54
apiMocksEnabled: import.meta.env.VITE_API_MOCKING_ENABLED === "true",
6-
crowdinInContextToolingEnabled: import.meta.env.VITE_BITCR_DEV_INCLUDE_CROWDIN_IN_CONTEXT_TOOLING === "true"
5+
crowdinInContextToolingEnabled: import.meta.env.VITE_BITCR_DEV_INCLUDE_CROWDIN_IN_CONTEXT_TOOLING === "true",
76
}

src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
--chart-4: 43 74% 66%;
136136
--chart-5: 27 87% 67%;
137137
}
138-
138+
139139
.dark {
140140
--chart-1: 220 70% 50%;
141141
--chart-2: 160 60% 45%;

0 commit comments

Comments
 (0)