Skip to content

Commit bd06846

Browse files
committed
Tweak UI
1 parent 46ddd95 commit bd06846

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

app/page.module.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.main {
22
display: flex;
33
flex-direction: column;
4-
justify-content: space-between;
4+
gap: 16px;
5+
/* justify-content: ; */
56
align-items: center;
67
padding: 6rem;
78
min-height: 100vh;

app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default async function Home({
3535
{threads.data?.threads.map((thread) => {
3636
return (
3737
<div key={`thread-row-${thread.id}`}>
38-
{thread.title} {thread.id}
38+
<a href={`/thread/${thread.id}`}>{thread.title}</a>
3939
</div>
4040
);
4141
})}

app/thread/[threadId]/page.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,5 @@ export default async function ThreadPage({
6565
.catch((err) => {
6666
console.log(err);
6767
});
68-
return (
69-
<div>
70-
{params.threadId}
71-
{JSON.stringify({ data })}
72-
</div>
73-
);
68+
return <div>{JSON.stringify(data, null, 2)}</div>;
7469
}

0 commit comments

Comments
 (0)