Skip to content

Commit

Permalink
remove invite option
Browse files Browse the repository at this point in the history
  • Loading branch information
KMKoushik committed Aug 31, 2024
1 parent da5f90c commit 5005ab5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
13 changes: 7 additions & 6 deletions src/components/AddExpense/SelectUserOrGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,27 +76,28 @@ export const SelectUserOrGroup: React.FC = () => {
<div className="mt-1 ">
<div>
<div>
<div className="mt-1 text-orange-600">
{/* <div className="mt-1 text-orange-600">
{isEmail.success
? "Warning: Don't use send invite if it's invalid email. use add to Split Pro instead. Your account will be blocked if this feature is misused"
: null}
</div>
</div> */}
<div>Note: sending invite is disabled for now because of spam</div>
</div>
<div className="flex gap-4">
<Button
<div className="flex justify-center gap-4">
{/* <Button
className="mt-4 w-full text-cyan-500 hover:text-cyan-500"
variant="outline"
disabled={!isEmail.success}
onClick={() => onAddEmailClick(false)}
>
<SendIcon className="mr-2 h-4 w-4" />
Send invite to user
</Button>
</Button> */}
<Button
className="mt-4 w-full text-cyan-500 hover:text-cyan-500"
variant="outline"
disabled={!isEmail.success}
onClick={() => onAddEmailClick(true)}
onClick={() => onAddEmailClick(false)}
>
<UserPlusIcon className="mr-2 h-4 w-4" />
Add to Split Pro
Expand Down
16 changes: 9 additions & 7 deletions src/components/group/AddMembers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,25 +119,27 @@ const AddMembers: React.FC<{
<p className="mt-4 text-red-500">Enter valid email</p>
) : (
<div>
<div className="mt-1 text-orange-600">
{/* <div className="mt-1 text-orange-600">
Warning: Don&apos;t use send invite if it&apos;s invalid email. use add to Split Pro
instead. Your account will be blocked if this feature is misused
</div>
<div className="flex gap-4">
<Button
</div> */}
<div>Note: sending invite is disabled for now because of spam</div>

<div className="flex justify-center gap-4">
{/* <Button
className="mt-4 w-full text-cyan-500"
variant="outline"
disabled={!isEmail.success}
onClick={() => onAddEmailClick(false)}
onClick={() => onAddEmailClick(true)}
>
<SendIcon className="mr-2 h-4 w-4" />
{isEmail.success ? 'Send invite to user' : 'Enter valid email'}
</Button>
</Button> */}
<Button
className="mt-4 w-full text-cyan-500"
variant="outline"
disabled={!isEmail.success}
onClick={() => onAddEmailClick(true)}
onClick={() => onAddEmailClick(false)}
>
<UserPlusIcon className="mr-2 h-4 w-4" />
{isEmail.success ? 'Add to Split Pro' : 'Enter valid email'}
Expand Down

0 comments on commit 5005ab5

Please sign in to comment.