Skip to content

Commit

Permalink
refactor: updated invited components with the new string changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelJacobStephen committed Mar 22, 2024
1 parent f2a2183 commit a1d252f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/hoppscotch-sh-admin/src/components.d.ts
Expand Up @@ -51,7 +51,6 @@ declare module '@vue/runtime-core' {
UsersDetails: typeof import('./components/users/Details.vue')['default']
UsersInviteModal: typeof import('./components/users/InviteModal.vue')['default']
UsersSharedRequests: typeof import('./components/users/SharedRequests.vue')['default']
UsersTable: typeof import('./components/users/Table.vue')['default']
}

}
7 changes: 3 additions & 4 deletions packages/hoppscotch-sh-admin/src/pages/users/invited.vue
Expand Up @@ -45,7 +45,7 @@
<template #action="{ item }">
<div v-if="item" class="my-1 mr-2">
<HoppButtonSecondary
v-if="xlAndLarger"
v-if="lgAndLarger"
:icon="IconTrash"
:label="t('users.revoke_invitation')"
class="text-secondaryDark bg-red-500 hover:bg-red-600"
Expand Down Expand Up @@ -119,7 +119,7 @@ const toast = useToast();
const router = useRouter();
const breakpoints = useBreakpoints(breakpointsTailwind);
const xlAndLarger = breakpoints.greater('xl');
const lgAndLarger = breakpoints.greater('lg');
// Get Proper Date Formats
const getCreatedDate = (date: string) => format(new Date(date), 'dd-MM-yyyy');
Expand All @@ -130,9 +130,8 @@ const { fetching, error, data } = useQuery({ query: InvitedUsersDocument });
// Table Headings
const headings = [
{ key: 'adminUid', label: t('users.admin_id') },
{ key: 'adminEmail', label: t('users.admin_email') },
{ key: 'inviteeEmail', label: t('users.invitee_email') },
{ key: 'adminEmail', label: t('users.invited_by') },
{ key: 'invitedOn', label: t('users.invited_on') },
{ key: 'action', label: 'Action' },
];
Expand Down

0 comments on commit a1d252f

Please sign in to comment.