Skip to content

Commit

Permalink
Added optional name and value attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
adithyanotfound committed Aug 21, 2024
1 parent a7f6fbe commit 41361bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/screens/OrganizationPeople/AddMember.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ function AddMember(): JSX.Element {
<Dropdown.Menu>
<Dropdown.Item
id="existingUser"
data-value="existingUser"
data-name="existingUser"
data-testid="existingUser"
onClick={(): void => {
openAddUserModal();
Expand All @@ -307,6 +309,8 @@ function AddMember(): JSX.Element {
</Dropdown.Item>
<Dropdown.Item
id="newUser"
data-value="newUser"
data-name="newUser"
data-testid="newUser"
onClick={(): void => {
openCreateNewUserModal();
Expand Down
6 changes: 6 additions & 0 deletions src/screens/OrganizationPeople/OrganizationPeople.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ function organizationPeople(): JSX.Element {
<Dropdown.Item
d-inline
id="userslist"
data-value="userslist"
data-name="displaylist"
data-testid="users"
defaultChecked={state == 2 ? true : false}
onClick={(): void => {
Expand All @@ -328,6 +330,8 @@ function organizationPeople(): JSX.Element {
<Dropdown.Item
d-inline
id="memberslist"
data-value="memberslist"
data-name="displaylist"
data-testid="members"
defaultChecked={state == 0 ? true : false}
onClick={(): void => {
Expand All @@ -339,6 +343,8 @@ function organizationPeople(): JSX.Element {
<Dropdown.Item
d-inline
id="adminslist"
data-value="adminslist"
data-name="displaylist"
data-testid="admins"
defaultChecked={state == 1 ? true : false}
onClick={(): void => {
Expand Down

0 comments on commit 41361bf

Please sign in to comment.