From 0f10fa3991e8dc248f4c066f724d58ce44d50d1a Mon Sep 17 00:00:00 2001 From: diced Date: Mon, 24 Oct 2022 11:38:38 -0700 Subject: [PATCH] fix: uniform margins --- src/components/File.tsx | 2 +- src/components/StatCard.tsx | 4 ++-- src/components/pages/Invites.tsx | 4 ++-- src/components/pages/Manage/index.tsx | 2 +- src/components/pages/Urls/index.tsx | 2 +- src/components/pages/Users/CreateUserModal.tsx | 4 ++-- src/components/pages/Users/EditUserModal.tsx | 4 ++-- src/pages/auth/login.tsx | 6 +++--- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/components/File.tsx b/src/components/File.tsx index 6e23036..c19cba1 100644 --- a/src/components/File.tsx +++ b/src/components/File.tsx @@ -147,7 +147,7 @@ export default function File({ image, updateImages, disableMediaPreview }) { - + diff --git a/src/components/StatCard.tsx b/src/components/StatCard.tsx index 095141c..a4efd28 100644 --- a/src/components/StatCard.tsx +++ b/src/components/StatCard.tsx @@ -51,7 +51,7 @@ export default function StatCard({ stat }: StatsGridProps) { {stat.icon} - + {stat.value} {typeof stat.diff == 'number' && ( <> @@ -63,7 +63,7 @@ export default function StatCard({ stat }: StatsGridProps) { )} - + {stat.desc} diff --git a/src/components/pages/Invites.tsx b/src/components/pages/Invites.tsx index 7e3d299..be7ce38 100644 --- a/src/components/pages/Invites.tsx +++ b/src/components/pages/Invites.tsx @@ -108,7 +108,7 @@ function CreateInviteModal({ open, setOpen, updateInvites }) { parser={(v: string) => Number(v.replace(/[^\d]/g, ''))} /> - + @@ -154,7 +154,7 @@ export default function Users() { }); const handleCopy = async (invite) => { - clipboard.copy(`${window.location.protocol}//${window.location.host}/invite/${invite.code}`); + clipboard.copy(`${window.location.protocol}//${window.location.host}/auth/register?code=${invite.code}`); showNotification({ title: 'Copied to clipboard', message: '', diff --git a/src/components/pages/Manage/index.tsx b/src/components/pages/Manage/index.tsx index a7f3be3..1de4b88 100644 --- a/src/components/pages/Manage/index.tsx +++ b/src/components/pages/Manage/index.tsx @@ -373,7 +373,7 @@ export default function Manage() { Refresh - + {exports && exports.length ? ( - + diff --git a/src/components/pages/Users/CreateUserModal.tsx b/src/components/pages/Users/CreateUserModal.tsx index 11e5f1a..6879437 100644 --- a/src/components/pages/Users/CreateUserModal.tsx +++ b/src/components/pages/Users/CreateUserModal.tsx @@ -51,9 +51,9 @@ export function CreateUserModal({ open, setOpen, updateUsers }) {
onSubmit(v))}> - + - + diff --git a/src/components/pages/Users/EditUserModal.tsx b/src/components/pages/Users/EditUserModal.tsx index 19ec25a..fd660fa 100644 --- a/src/components/pages/Users/EditUserModal.tsx +++ b/src/components/pages/Users/EditUserModal.tsx @@ -57,9 +57,9 @@ export function EditUserModal({ open, setOpen, updateUsers, user }) { onSubmit(v))}> - + - + diff --git a/src/pages/auth/login.tsx b/src/pages/auth/login.tsx index c95b1fa..1e4dd94 100644 --- a/src/pages/auth/login.tsx +++ b/src/pages/auth/login.tsx @@ -71,13 +71,13 @@ export default function Login({ title, user_registration, oauth_registration, oa - {user_registration && ( <> - +