fix password onclick not stored

This commit is contained in:
spencerwooo
2021-12-20 22:33:49 +08:00
parent a87005f04c
commit 6d02a81a70
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -46,6 +46,7 @@ const Auth: FunctionComponent<{ redirect: string }> = ({ redirect }) => {
<button
className="focus:outline-none focus:ring focus:ring-blue-300 hover:bg-blue-400 px-4 py-2 text-white bg-blue-500 rounded"
onClick={() => {
setPersistedToken(token)
router.reload()
}}
>
+1 -1
View File
@@ -67,7 +67,7 @@ const VideoPreview: FunctionComponent<{ file: any }> = ({ file }) => {
<span>VLC</span>
</a>
<a
className="focus:outline-none focus:ring focus:ring-yellow-100 hover:bg-yellow-400 flex items-center justify-center px-4 py-2 mb-2 space-x-2 text-white bg-yellow-400 rounded"
className="focus:outline-none focus:ring focus:ring-yellow-100 hover:bg-yellow-300 flex items-center justify-center px-4 py-2 mb-2 space-x-2 text-white bg-yellow-400 rounded"
href={`potplayer://${file['@microsoft.graph.downloadUrl']}`}
target="_blank"
rel="noopener noreferrer"