mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-28 12:18:51 +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">
|
<p class="follow-request-buttons">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
disabled={uiState === 'loading'}
|
disabled={uiState === 'loading' || hasRelationship}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setUIState('loading');
|
setUIState('loading');
|
||||||
setRequestState('accept');
|
setRequestState('accept');
|
||||||
|
@ -40,7 +40,7 @@ function FollowRequestButtons({ accountID, onChange }) {
|
||||||
</button>{' '}
|
</button>{' '}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
disabled={uiState === 'loading'}
|
disabled={uiState === 'loading' || hasRelationship}
|
||||||
class="light danger"
|
class="light danger"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setUIState('loading');
|
setUIState('loading');
|
||||||
|
|
Loading…
Reference in a new issue