From 690982130b31593fa1664cb1a1484f5c021245da Mon Sep 17 00:00:00 2001 From: Inbar Barkai Date: Sun, 15 May 2022 11:50:45 +0300 Subject: [PATCH] Removed unused interface. --- web/src/components/user/userInvitations.tsx | 159 +++++++++----------- 1 file changed, 75 insertions(+), 84 deletions(-) diff --git a/web/src/components/user/userInvitations.tsx b/web/src/components/user/userInvitations.tsx index 3af4fb9..3a491bb 100644 --- a/web/src/components/user/userInvitations.tsx +++ b/web/src/components/user/userInvitations.tsx @@ -3,94 +3,85 @@ import * as React from 'react'; import { Invitation } from '../../models/invitation'; import Moment from 'react-moment'; +export function UserInvitations() { + let userInvitations: Invitation[] = [ + { + invitationId: 'asdf', + userId: 'asdf', + inviteesAmount: 3, + inviteesAdmitted: 2, + inviteesArrivalTimestamp: new Date(), + isActive: true, + creationTimestamp: new Date(), + modifyTimestamp: new Date(), + commentForGuard: 'hey' + } + ]; - -export function UserInvitations() { - let userInvitations:Invitation[] = [ - {invitationId: 'asdf', - userId: 'asdf', - inviteesAmount: 3, - inviteesAdmitted:2, - inviteesArrivalTimestamp: new Date(), - isActive: true, - creationTimestamp: new Date(), - modifyTimestamp: new Date(), - commentForGuard: 'hey'} - ]; - -const renderRows = function(){ return userInvitations.map((invitation) => ) -} - return ( - - - - - - - - - - - - - - {renderRows()} - -
- addmitted - - invited - - arriving at - - comment for guard - - created at - - is active -
- ); - + const renderRows = function () { + return userInvitations.map((invitation) => ) } + return ( + + + + + + + + + + + + + {renderRows()} + +
+ addmitted + + invited + + arriving at + + comment for guard + + created at + + is active +
+ ); - function InvitaionRow({invitation}:IInvitaionRowData){ - return ( - - - {invitation.inviteesAdmitted} - - - {invitation.inviteesAmount} - - - - - - - - {invitation.commentForGuard} - - - - - - - - {invitation.isActive.toString()} - - - ); - } +} +function InvitaionRow({ invitation }: IInvitaionRowData) { + return ( + + + {invitation.inviteesAdmitted} + + + {invitation.inviteesAmount} + + + - function InvitaionRows({invitations}:IInvitaionRowsData){ - return invitations.map((invitation) => ) - } + + + + {invitation.commentForGuard} + + + - interface IInvitaionRowData{ - invitation: Invitation - } + + + + {invitation.isActive.toString()} + + + ); +} - interface IInvitaionRowsData{ - invitations: Invitation[] - } \ No newline at end of file +interface IInvitaionRowData { + invitation: Invitation +} \ No newline at end of file