Skip to content

Commit

Permalink
feat: redesign payment id screen
Browse files Browse the repository at this point in the history
  • Loading branch information
benalleng authored and futurepaul committed Oct 27, 2023
1 parent 6f628cf commit 1b1e924
Show file tree
Hide file tree
Showing 18 changed files with 857 additions and 681 deletions.
8 changes: 3 additions & 5 deletions src/components/Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import {
import { A } from "solid-start";

import {
ActivityDetailsModal,
ActivityItem,
DetailsIdModal,
HackActivityType,
LoadingShimmer,
NiceP
Expand All @@ -30,7 +30,7 @@ export const REDSHIFT_LABEL =
"py-1 px-2 bg-white text-m-red rounded inline-block text-sm";
export const RIGHT_COLUMN = "flex flex-col items-right text-right max-w-[8rem]";

interface IActivityItem {
export interface IActivityItem {
kind: HackActivityType;
id: string;
amount_sats: number;
Expand All @@ -50,7 +50,6 @@ function UnifiedActivityItem(props: {
props.item.kind as unknown as HackActivityType
);
};

return (
<ActivityItem
// This is actually the ActivityType enum but wasm is hard
Expand All @@ -77,7 +76,6 @@ export function CombinedActivity(props: { limit?: number }) {
function openDetailsModal(id: string, kind: HackActivityType) {
console.log("Opening details modal: ", id, kind);

// Some old channels don't have a channel id in the activity list
if (!id) {
console.warn("No id provided to openDetailsModal");
return;
Expand Down Expand Up @@ -109,7 +107,7 @@ export function CombinedActivity(props: { limit?: number }) {
fallback={<LoadingShimmer />}
>
<Show when={detailsId() && detailsKind()}>
<DetailsIdModal
<ActivityDetailsModal
open={detailsOpen()}
kind={detailsKind()}
id={detailsId()}
Expand Down
Loading

0 comments on commit 1b1e924

Please sign in to comment.