Skip to content

Commit

Permalink
formatting, constants file
Browse files Browse the repository at this point in the history
  • Loading branch information
kmg1434 committed Oct 8, 2024
1 parent d271e23 commit aa2c3d2
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 6 deletions.
1 change: 1 addition & 0 deletions app/_lib/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const EXAMPLE_CONSTANT = 3;
4 changes: 2 additions & 2 deletions app/card/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react'

const Card_Details = ({ params }: {params:{id:number}}) => {
const Card_Details = ({ params }: { params: { id: number } }) => {
return (
<div>
Card ID: {params.id}
Card ID: {params.id}
</div>
)
}
Expand Down
2 changes: 1 addition & 1 deletion app/card/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const card = ({ params }: {params:{id:number}}) => {
const card = ({ params }: { params: { id: number } }) => {
return (
<div>card {params.id}</div>
)
Expand Down
6 changes: 3 additions & 3 deletions app/deck/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react'

const Deck_Page = ({ params }: {params:{id:number}}) => {
const Deck_Page = ({ params }: { params: { id: number } }) => {
return (
<div>
<h1>Deck_Page</h1>
<div>Details of Deck {params.id}</div>
<h1>Deck_Page</h1>
<div>Details of Deck {params.id}</div>
</div>
)
}
Expand Down
12 changes: 12 additions & 0 deletions app/deck/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react'

const DeckFilter = ({ children }: { children: React.ReactNode }) => {
return (
<div>
<h1>Deck Filter</h1>
{children}
</div>
)
}

export default DeckFilter
1 change: 1 addition & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default function RootLayout({
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
<h1 className="bg-gradient-to-b from-yellow-400 to-red-500">Cardservo</h1>
{children}
</body>
</html>
Expand Down

0 comments on commit aa2c3d2

Please sign in to comment.