Skip to content

Commit 0ea280f

Browse files
minor updates and fixes (#219)
1 parent 33d6d9e commit 0ea280f

File tree

6 files changed

+10
-49
lines changed

6 files changed

+10
-49
lines changed

src/app/(project)/projects/[project]/drops/Drops.tsx

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,6 @@ export default function Drops({ project }: DropsPageProps) {
5959
</div>
6060
),
6161
}),
62-
loadingColumnHelper.display({
63-
id: 'price',
64-
header: () => (
65-
<div className="rounded-full h-4 w-28 bg-stone-800 animate-pulse" />
66-
),
67-
cell: () => (
68-
<div className="flex gap-2 items-center">
69-
<span className="rounded-full h-4 w-14 bg-stone-800 animate-pulse" />
70-
</div>
71-
),
72-
}),
73-
7462
loadingColumnHelper.display({
7563
id: 'startTime',
7664
header: () => (
@@ -171,7 +159,7 @@ export default function Drops({ project }: DropsPageProps) {
171159
<Link
172160
href={`/projects/${dropsQuery.data?.project.id}/drops/${
173161
info.getValue().id
174-
}/holders`}
162+
}/mints`}
175163
className="flex flex-col gap-1"
176164
>
177165
<span className="text-xs text-white font-medium">
@@ -185,35 +173,6 @@ export default function Drops({ project }: DropsPageProps) {
185173
),
186174
}
187175
),
188-
columnHelper.accessor(
189-
({ price, collection }) => {
190-
if (!collection) {
191-
throw new Error('no collection');
192-
}
193-
194-
return {
195-
blockchain: collection.blockchain,
196-
price,
197-
};
198-
},
199-
{
200-
id: 'price',
201-
header: () => <span>Price</span>,
202-
cell: (info) => {
203-
const price = info.getValue().price;
204-
return (
205-
<div className="flex gap-1">
206-
<span className="text-xs text-white font-medium">
207-
{price === 0 ? 'FREE' : price}
208-
</span>
209-
{price > 0 && (
210-
<span className="text-xs text-gray-400 font-medium">Lamports</span>
211-
)}
212-
</div>
213-
);
214-
},
215-
}
216-
),
217176
columnHelper.accessor(
218177
({ startTime, createdAt }) => ({ startTime, createdAt }),
219178
{

src/app/(project)/projects/[project]/drops/MintEdition.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export default function MintEdition({ project, drop }: MintEditionProps) {
125125
},
126126
onCompleted: () => {
127127
toast.success('Edition minted successfully to the wallet.');
128-
router.push(`/projects/${project}/drops/${drop}/holders`);
128+
router.push(`/projects/${project}/drops/${drop}/mints`);
129129
},
130130
});
131131
};

src/app/(project)/projects/[project]/drops/PauseDrop.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export default function PauseDrop({ drop, project }: PauseDropProps) {
6565
},
6666
onCompleted: () => {
6767
toast.info('Drop paused successfully.');
68+
router.back();
6869
},
6970
onError: (error: ApolloError) => {
7071
toast.error(error.message);

src/app/(project)/projects/[project]/drops/ResumeDrop.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export default function ResumeDrop({ drop, project }: ResumeDropProps) {
6565
},
6666
onCompleted: () => {
6767
toast.info('Drop resumed successfully.');
68+
router.back();
6869
},
6970
onError: (error: ApolloError) => {
7071
toast.error(error.message);
@@ -105,7 +106,6 @@ export default function ResumeDrop({ drop, project }: ResumeDropProps) {
105106
<Button
106107
htmlType="submit"
107108
className="w-full mt-5"
108-
variant="failure"
109109
onClick={onResume}
110110
loading={loading}
111111
disabled={loading}

src/app/(project)/projects/[project]/drops/ShutdownDrop.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export default function ShutdownDrop({ drop, project }: ShutdownDropProps) {
6767
},
6868
onCompleted: () => {
6969
toast.info('Drop shutdown successfully.');
70+
router.back();
7071
},
7172
onError: (error: ApolloError) => {
7273
toast.error(error.message);

src/app/(project)/projects/[project]/drops/[drop]/Drop.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ export default function Drop({ children, project, drop }: DropProps): JSX.Elemen
136136
<span>{dropQuery.data?.project?.drop?.collection?.metadataJson?.name}</span>
137137
</div>
138138
<div className="flex items-center gap-2">
139-
<Link href={`/projects/${project}/drops/${drop}/edit`}>
140-
<Button
141-
icon={<Icon.Edit2 stroke="stroke-yellow-300" className="my-1" />}
142-
variant="secondary"
143-
/>
139+
<Link
140+
href={`/projects/${project}/drops/${drop}/edit`}
141+
className="border-2 border-yellow-300 rounded-md p-2"
142+
>
143+
<Icon.Edit2 stroke="stroke-yellow-300" />
144144
</Link>
145145
<Link href={`/projects/${project}/drops/${drop}/help`}>
146146
<Button variant="secondary">?</Button>

0 commit comments

Comments
 (0)