This repository has been archived by the owner on Apr 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from bharatari/dev
v2.0.0
- Loading branch information
Showing
36 changed files
with
399 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
client/src/routes/Reservations/routes/Reservation/components/ActionItem/Component.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import _ from 'lodash'; | ||
import { FormatDate } from 'components/'; | ||
import React from 'react'; | ||
|
||
const ActionItem = ({ action }) => { | ||
const name = _.get(action, 'user.fullName'); | ||
const date = _.get(action, 'createdAt'); | ||
const actionPerformed = _.get(action, 'action'); | ||
|
||
const getDescription = () => { | ||
if (actionPerformed === 'approved') { | ||
return 'approved this on'; | ||
} else if (actionPerformed === 'checkedOut') { | ||
return 'checked this out on'; | ||
} else if (actionPerformed === 'checkedIn') { | ||
return 'checked this in on'; | ||
} else if (actionPerformed === 'disabled') { | ||
return 'disabled this on'; | ||
} else if (actionPerformed === 'rejected') { | ||
return 'rejected this on'; | ||
} else { | ||
return 'modified this on'; | ||
} | ||
}; | ||
|
||
return ( | ||
<li> | ||
<strong>{name}</strong> {getDescription()} <FormatDate datetime={date} /> | ||
</li> | ||
); | ||
}; | ||
|
||
export default ActionItem; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
DATABASE_URL=postgres://postgres:postgres@postgres/authentication | ||
DATABASE_SSL=false | ||
REDIS_URL=redis://redis:6379 | ||
S3_API_KEY=key | ||
S3_API_SECRET=secret | ||
TEST_DB=postgres://postgres:postgres@postgres/authentication_test | ||
TEST_REDIS_URL=redis://redis:6379 | ||
AZURE_STORAGE_CONNECTION_STRING=string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.