Skip to content

Commit

Permalink
Merge branch 'staging' into prod
Browse files Browse the repository at this point in the history
  • Loading branch information
mbappai committed Aug 6, 2023
2 parents e4f0759 + d6b7ca5 commit 6221e82
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/StaffPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ const createData = useMutation(createDataHandler,{

const user = data.data[0]
const status = user.status
message = status == 0 ? `Staff could not be added because they aren't registered. A registration link has beens sent to ${user.email} to register and will be added automatically to as ${user.userRoleName} after registration`:`User has been added to service as a ${user.userRoleName}`
message = status == 0 ? `Staff could not be added because they aren't registered. A registration link has beens sent to ${user.email} to register and will be added automatically to as ${user.staffRoleName} after registration`:`User has been added to service as a ${user.staffRoleName}`
notification['success']({
message: message,
style:{
Expand Down
7 changes: 6 additions & 1 deletion pages/manager/bookings/events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,12 @@ function DetailDrawer({selectedRecord,isDrawerOpen,closeDrawer}:DrawerProps){
)
})}

{selectedRecord.redeemStatus === 'redeemed'?<Text type="secondary" >It appears that your ticket has already been redeemed </Text>:null}
{selectedRecord.redeemStatus === 'redeemed'
?<Text type="secondary" >It appears that your ticket has already been redeemed </Text>
:selectedRecord.paymentStatus!== 'sucessful'
?<Text>Payment status for this ticket has to be successful before it can be redeemed</Text>
:null
}
</div>


Expand Down
2 changes: 1 addition & 1 deletion pages/organizations/communities/staff/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ const createData = useMutation(createDataHandler,{

const user = data.data[0]
const status = user.status
message = status == 0 ? `Staff could not be added because they aren't registered. A registration link has beens sent to ${user.email} to register and will be added automatically to as ${user.userRoleName} after registration`:`User has been added to service as a ${user.userRoleName}`
message = status == 0 ? `Staff could not be added because they aren't registered. A registration link has beens sent to ${user.email} to register and will be added automatically to as ${user.staffRoleName} after registration`:`User has been added to service as a ${user.staffRoleName}`
notification['success']({
message: message,
style:{
Expand Down
7 changes: 6 additions & 1 deletion pages/organizations/events/bookings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,12 @@ return(
/>
)
})}
{selectedRecord.redeemStatus === 'redeemed'?<Text type="secondary" >It appears that your ticket has already been redeemed </Text>:null}
{selectedRecord.redeemStatus === 'redeemed'
?<Text type="secondary" >It appears that your ticket has already been redeemed </Text>
:selectedRecord.paymentStatus!== 'sucessful'
?<Text>Payment status for this ticket has to be successful before it can be redeemed</Text>
:null
}
</div>


Expand Down
2 changes: 1 addition & 1 deletion pages/organizations/events/staff/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ const createData = useMutation(createDataHandler,{

const user = data.data[0]
const status = user.status
message = status == 0 ? `Staff could not be added because they aren't registered. A registration link has beens sent to ${user.email} to register and will be added automatically to as ${user.userRoleName} after registration`:`User has been added to event as a ${user.userRoleName}`
message = status == 0 ? `Staff could not be added because they aren't registered. A registration link has beens sent to ${user.email} to register and will be added automatically to as ${user.staffRoleName} after registration`:`User has been added to event as a ${user.staffRoleName}`
notification['success']({
message: message,
style:{
Expand Down
2 changes: 1 addition & 1 deletion pages/organizations/venues/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default function NewService(){
...formData,
...fullAddress,
logoImageHash: imageHash,
coverImageHash: "coverimagehash",
coverImageHash: imageHash,
latitude:String(fullAddress.latitude),
longitude:String(fullAddress.longitude),
contactNumber: formatedContact,
Expand Down

0 comments on commit 6221e82

Please sign in to comment.