Skip to content
Snippets Groups Projects
Commit 0c8d547b authored by Larbi Gharib's avatar Larbi Gharib
Browse files

Dynamic placeholder drawer

Change-Id: I81a08bcfebfd7b9daa621c4de863daf20433fb8f
parent b764e05b
No related branches found
No related tags found
No related merge requests found
......@@ -208,7 +208,7 @@ export default function TemporaryDrawer(props) {
className: classes.margin + " " + classes.search
}}
inputProps={{
placeholder: "Add a contact ...",
placeholder: props.placeholder,
inputProps: {
"aria-label": "Add a contact"
},
......
......@@ -165,7 +165,7 @@ export default function Users(props) {
return(
<div>
<TemporaryDrawer isAdmin={auth.hasAdminScope()} username={props.username} openDrawer={openDrawer} setOpenDrawer={setOpenDrawer} direction="right" addingToGroup={false} />
<TemporaryDrawer isAdmin={auth.hasAdminScope()} username={props.username} openDrawer={openDrawer} setOpenDrawer={setOpenDrawer} direction="right" addingToGroup={false} placeholder="Add contact ..." />
<Dialog
open={open}
onClose={() => setOpen(false)}
......
......@@ -217,7 +217,7 @@ export default function EditGroup(props) {
return(
<div>
<TemporaryDrawer openDrawer={openDrawer} setOpenDrawer={setOpenDrawer} direction="right" addingToGroup={true} groupName={name === ''?props.groupName:name} selectedBlueprint={blueprint} getGroup={getGroup} blueprintsOptions={props.getBlueprintsOptions()}/>
<TemporaryDrawer openDrawer={openDrawer} setOpenDrawer={setOpenDrawer} direction="right" addingToGroup={true} placeholder="Add user ..." groupName={name === ''?props.groupName:name} selectedBlueprint={blueprint} getGroup={getGroup} blueprintsOptions={props.getBlueprintsOptions()}/>
<GridContainer>
<GridItem xs={12} sm={12} md={4}>
<Card profile>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment