-
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.
lumen: 👥 Add 'book for someone' feature
GitOrigin-RevId: 314c6f97223d4d3bfc0c29a23c34c22a44e59f01
- Loading branch information
1 parent
637e8b6
commit 1e209bf
Showing
18 changed files
with
307 additions
and
114 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
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
Binary file not shown.
Binary file not shown.
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
42 changes: 42 additions & 0 deletions
42
front/src/components/scenes/Bookings/ModifyEventModal/ConfirmModify/ForUserNameChangeBody.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,42 @@ | ||
// lib | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
// src | ||
import BookingSummary from './BookingSummary'; | ||
|
||
const ForUserNameChangeBody = ({ | ||
event, | ||
handleForUserNameInputChange, | ||
forUserName, | ||
detectEnter, | ||
attemptedConfirm, | ||
}) => [ | ||
<div | ||
className={attemptedConfirm ? 'form-group was-validated' : 'form-group'} | ||
key="forUserNameForm" | ||
> | ||
<label htmlFor="forUserName">Pour le compte de :</label> | ||
<input | ||
type="text" | ||
className={forUserName ? 'form-control valid' : 'form-control invalid'} | ||
id="forUserName" | ||
maxLength="150" | ||
value={forUserName} | ||
onChange={handleForUserNameInputChange} | ||
onKeyPress={detectEnter} | ||
/> | ||
</div>, | ||
<div className="text-center" key="eventDetails"> | ||
<BookingSummary event={event} /> | ||
</div>, | ||
]; | ||
|
||
ForUserNameChangeBody.propTypes = { | ||
event: PropTypes.object.isRequired, | ||
handleForUserNameInputChange: PropTypes.func.isRequired, | ||
forUserName: PropTypes.string.isRequired, | ||
detectEnter: PropTypes.func.isRequired, | ||
attemptedConfirm: PropTypes.bool.isRequired, | ||
}; | ||
|
||
export default ForUserNameChangeBody; |
Oops, something went wrong.