Skip to content

Commit 58d1c2c

Browse files
johanbookJohan Book
and
Johan Book
authored
fix(web-ui): use new journal endpoint (#639)
* fix(web-ui): use new journal endpoint * fix(web-ui): fix type error --------- Co-authored-by: Johan Book <{ID}+{username}@users.noreply.github.com>
1 parent 3482b18 commit 58d1c2c

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

services/web-ui/src/pages/JournalPage/JournalPage.container.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function JournalPageContainer(): React.ReactElement {
1818

1919
const { error, data, isLoading } = useQuery(
2020
[CacheKeysConstants.Journal, dateRange.from, dateRange.to],
21-
() => journalApi.getJournal(dateRange)
21+
() => journalApi.getProfileJournal(dateRange)
2222
);
2323

2424
if (error) {

services/web-ui/src/pages/JournalPage/JournalPage.stories.tsx

+10-4
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,21 @@ import { JournalPageComponent } from "./JournalPage.component";
77
const JOURNAL_ENTRIES: JournalEntryDetails[] = [
88
{
99
commandName: "Did the thing",
10-
created: new Date("2020"),
11-
id: 1,
10+
createdAt: new Date("2020"),
11+
id: "1",
1212
payload: {},
13+
profile: {
14+
id: 1,
15+
},
1316
},
1417
{
1518
commandName: "Did the thing again",
16-
created: new Date("2020"),
17-
id: 2,
19+
createdAt: new Date("2020"),
20+
id: "2",
1821
payload: {},
22+
profile: {
23+
id: 1,
24+
},
1925
},
2026
];
2127

0 commit comments

Comments
 (0)