Состояние кнопок

PHOTO EMBED

Wed Apr 07 2021 15:18:24 GMT+0000 (UTC)

Saved by @happy_cutman #css

{(() => {
        if (условие1)
          return (
            <button>
              <Loader stroke="white" style={{ marginRight: '10px' }} />
                Waiting for token allowance
            </button>
          )
        if (условие 2)
          return (
            <button>
              <Loader stroke="white" style={{ marginRight: '10px' }} />
                Submitting loan
            </button>
          )
        else {
          return (
            <button>
              Borrow
            </button>
          )
        }
      })()}
content_copyCOPY