Skip to content

Commit 8ee4582

Browse files
author
Pavel Fokin
committed
Add 'zod' package
1 parent 36aa93a commit 8ee4582

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

components/Admin/notifications/ChannelCard/ChannelCard.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,16 @@ export default function ChannelCard({ channel }) {
3636
})}{' '}
3737
{channel.name || `Channel #${channel.id}`}
3838
</div>
39-
<div className="flex justify-end">
40-
<button className="btn btn-error" onClick={() => setIsDeleteDialogOpen(true)}>
41-
Delete
42-
</button>
43-
</div>
39+
4440
<ChannelSpecificDetails channel={channel} />
4541
<div className="text-sm text-gray-600 dark:text-gray-400 mb-2 w-full">
4642
Used in {channel.rules.length} {channel.rules.length === 1 ? 'rule' : 'rules'}
4743
</div>
44+
<div className="flex justify-start">
45+
<button className="btn btn-error" onClick={() => setIsDeleteDialogOpen(true)}>
46+
Delete
47+
</button>
48+
</div>
4849
<ChannelDeleteDialog
4950
isOpen={isDeleteDialogOpen}
5051
onClose={() => setIsDeleteDialogOpen(false)}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@
7070
"tailwindcss": "^4.1.7",
7171
"universal-cookie": "^7.2.1",
7272
"web-vitals": "^2.1.0",
73-
"xrpl-binary-codec-prerelease": "^8.0.1"
73+
"xrpl-binary-codec-prerelease": "^8.0.1",
74+
"zod": "^3.25.67"
7475
},
7576
"scripts": {
7677
"dev": "next dev",

pages/admin/notifications/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default function Notifications() {
7777
<h2>Notification channels</h2>
7878
<AddChannelButton />
7979
</div>
80-
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
80+
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
8181
{notifications.data.channels.map((channel) => (
8282
<ChannelCard key={channel.id} channel={channel} />
8383
))}

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9207,3 +9207,8 @@ yocto-queue@^0.1.0:
92079207
version "0.1.0"
92089208
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
92099209
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
9210+
9211+
zod@^3.25.67:
9212+
version "3.25.67"
9213+
resolved "https://registry.yarnpkg.com/zod/-/zod-3.25.67.tgz#62987e4078e2ab0f63b491ef0c4f33df24236da8"
9214+
integrity sha512-idA2YXwpCdqUSKRCACDE6ItZD9TZzy3OZMtpfLoh6oPR47lipysRrJfjzMqFxQ3uJuUPyUeWe1r9vLH33xO/Qw==

0 commit comments

Comments
 (0)