mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-24 18:25:41 +03:00
Disable follow request buttons once has relationship
This commit is contained in:
parent
39f7d4e00d
commit
a697fb04df
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ function FollowRequestButtons({ accountID, onChange }) {
|
|||
<p class="follow-request-buttons">
|
||||
<button
|
||||
type="button"
|
||||
disabled={uiState === 'loading'}
|
||||
disabled={uiState === 'loading' || hasRelationship}
|
||||
onClick={() => {
|
||||
setUIState('loading');
|
||||
setRequestState('accept');
|
||||
|
@ -40,7 +40,7 @@ function FollowRequestButtons({ accountID, onChange }) {
|
|||
</button>{' '}
|
||||
<button
|
||||
type="button"
|
||||
disabled={uiState === 'loading'}
|
||||
disabled={uiState === 'loading' || hasRelationship}
|
||||
class="light danger"
|
||||
onClick={() => {
|
||||
setUIState('loading');
|
||||
|
|
Loading…
Reference in a new issue