Skip to content

Commit 8216f2b

Browse files
committed
feat: first iteration of the new ledger page
1 parent 58000fc commit 8216f2b

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

app/(account)/confirm-email/[token]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const MailConfirmationPage = () => {
2020
fetchData().then(r => {
2121
setResponse(r);
2222
});
23-
}, []);
23+
}, [token]);
2424

2525
if (!token) {
2626
return <main>

app/(account)/logout/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const LogoutPage = () => {
1111
authState.logout().then(() => {
1212
redirect("login");
1313
});
14-
}, []);
14+
}, [authState]);
1515
}
1616

1717
export default LogoutPage;

app/(home)/latestNews.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import classNames from "classnames";
33
import Container from "../common/uiLibrary/container";
44
import PageSectionTitle from "../common/uiLibrary/pageSectionTitle";
55
import LinkButton from "../common/uiLibrary/linkButton";
6+
import Image from "next/image";
67

78
interface PostPreviewCardProps {
89
post: BlogPost,
@@ -30,6 +31,7 @@ const PostPreviewImage = ({post, isMain = false, className}: PostPreviewCardProp
3031
return (
3132
<div className={classNames(outerContainerStyles, {className})}>
3233
<div className={innerContainerStyles}>
34+
{/* eslint-disable-next-line @next/next/no-img-element */}
3335
<img
3436
src={post.socials_image}
3537
alt={post.title}

app/ledger/presentation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default function LedgerPresentation() {
6464

6565
<DataTable columns={content.columns} data={content.data} />
6666

67-
//TODO: make this shit a generic component and stylise it
67+
{/*TODO: make this shit a generic component and stylise it*/}
6868
<div className="flex justify-between p-5">
6969
<div className="flex-1">
7070
{hasPreviousPage && (

context/ledger/LedgerDataTableProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import {createContext, ReactNode, useContext, useEffect, useState} from "react";
3+
import {createContext, ReactNode, useContext} from "react";
44
import {DataTableProps} from "../../components/organisms/DataTable";
55
import {LedgerData} from "../../types/ledger/ledgerResponse";
66
import {useLedgerApiProvider} from "./LedgerApiProvider";

0 commit comments

Comments
 (0)