-
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 branch 'feat_for_user_name' into 'main'
lumen: 👥 Add 'book for someone' feature See merge request resa/github!28 GitOrigin-RevId: 7676ff927b1e1394348861def1864ecd566acde2
- Loading branch information
1 parent
d037b65
commit 2585a29
Showing
17 changed files
with
259 additions
and
102 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
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; |
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.