show token/otp

This commit is contained in:
muhammadeko 2022-05-23 19:22:35 +07:00
parent 5273ce37d3
commit a5bfdcc266
No known key found for this signature in database
GPG Key ID: 51366716C10E98B1

View File

@ -272,8 +272,12 @@ export default function GCAuth() {
<button <button
className="mt-auto bg-indigo-600 hover:bg-indigo-500 text-white font-bold py-2 px-4 rounded-md w-full">Login className="mt-auto bg-indigo-600 hover:bg-indigo-500 text-white font-bold py-2 px-4 rounded-md w-full">Login
</button> </button>
<button onClick={handleCopyToken} className="mt-2 bg-indigo-600 hover:bg-indigo-500 text-white font-bold py-2 px-4 rounded-md w-full">Copy Token <input type="text" onClick={(e) => {
</button> navigator.clipboard.writeText(e.currentTarget.value)
}}
placeholder="Your token here"
className="mt-2 block w-full shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm border-gray-300 rounded-md"
value={token} readOnly/>
</form> </form>
</div> </div>
<div className="col-span-1"> <div className="col-span-1">