Skip to content

Commit

Permalink
Merge pull request #97 from tgxn/fix_ban_site
Browse files Browse the repository at this point in the history
fix for expires on ban user from site
  • Loading branch information
tgxn authored Nov 4, 2023
2 parents 9f2d06a + 4772321 commit 1489991
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/components/Actions/GenButtons.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,21 +188,21 @@ export const BanUserSiteButton = ({ person, ...props }) => {
placeholder={`${actionText.toLowerCase()} reason`}
/>,
!person.banned ? (
<CheckboxElement
key="removeData"
inputText="Remove Data"
value={removeData}
setValue={setRemoveData}
/>
) : null,
!person ? (
<ExpiryLengthElement
key="banExpires"
inputText="Ban Expires"
value={expires}
setValue={setExpires}
/>
) : null,
!person.banned ? (
<CheckboxElement
key="removeData"
inputText="Remove Data"
value={removeData}
setValue={setRemoveData}
/>
) : null,
]}
// disabled={banReason == ""}
buttonMessage={actionText}
Expand Down

0 comments on commit 1489991

Please sign in to comment.