refactor: button to allow html attributes & refactor class names (#956)

This commit is contained in:
Aman Harwara
2022-03-28 17:41:54 +05:30
committed by GitHub
parent 3ca7102fd0
commit aba1e35a1d
31 changed files with 117 additions and 90 deletions

View File

@@ -78,13 +78,13 @@ export const SaveSecretKey: FunctionComponent<{
<ModalDialogButtons>
<Button
className="min-w-20"
type="normal"
variant="normal"
label="Back"
onClick={() => act.openScanQRCode()}
/>
<Button
className="min-w-20"
type="primary"
variant="primary"
label="Next"
onClick={() => act.openVerification()}
/>

View File

@@ -63,13 +63,13 @@ export const ScanQRCode: FunctionComponent<{
<ModalDialogButtons>
<Button
className="min-w-20"
type="normal"
variant="normal"
label="Cancel"
onClick={() => act.cancelActivation()}
/>
<Button
className="min-w-20"
type="primary"
variant="primary"
label="Next"
onClick={() => act.openSaveSecretKey()}
/>

View File

@@ -27,7 +27,7 @@ export const TwoFactorSuccess: FunctionComponent<{
<ModalDialogButtons>
<Button
className="min-w-20"
type="primary"
variant="primary"
label="Finish"
onClick={act.finishActivation}
/>

View File

@@ -65,13 +65,13 @@ export const Verification: FunctionComponent<{
)}
<Button
className="min-w-20"
type="normal"
variant="normal"
label="Back"
onClick={act.openSaveSecretKey}
/>
<Button
className="min-w-20"
type="primary"
variant="primary"
label="Next"
onClick={act.enable2FA}
/>