TagSpaces is an offline, open source, document manager with tagging support
chore: migration to tsbutton for the about dialog
Ilian Sapundshiev656ddfc31cdf
diff --git a/src/renderer/components/dialogs/AboutDialog.tsx b/src/renderer/components/dialogs/AboutDialog.tsxindex 1135605c7..af3ab6969 100644--- a/src/renderer/components/dialogs/AboutDialog.tsx+++ b/src/renderer/components/dialogs/AboutDialog.tsx@@ -17,7 +17,7 @@*/import React, { useState } from 'react';-import Button from '@mui/material/Button';+import TsButton from '-/components/TsButton';import Paper from '@mui/material/Paper';import Typography from '@mui/material/Typography';import DialogActions from '@mui/material/DialogActions';@@ -160,15 +160,10 @@ function AboutDialog(props: Props) {</strong>is made possible by the TagSpaces project and other open sourcesoftware listed in the:- <br />- <Button- size="small"- color="primary"- style={{ marginLeft: -5 }}- onClick={() => openThirdPartyLibsDialog()}- >+ <p style={{ marginBottom: 5 }} />+ <TsButton onClick={() => openThirdPartyLibsDialog()}>Software Acknowledgements- </Button>+ </TsButton><br />{!Pro && (<span>@@ -184,92 +179,83 @@ function AboutDialog(props: Props) {for more details.<br /><br />- {imprintURL && (- <Button- size="small"- color="primary"+ <div>+ {imprintURL && (+ <TsButton+ style={{ marginRight: 5 }}+ onClick={() => {+ openURLExternally(imprintURL, true);+ }}+ >+ Imprint+ </TsButton>+ )}+ {privacyURL && (+ <TsButton+ style={{ marginRight: 5 }}+ onClick={() => {+ openURLExternally(privacyURL, true);+ }}+ >+ Privacy Policy+ </TsButton>+ )}+ <TsButton+ style={{ marginRight: 5 }}onClick={() => {- openURLExternally(imprintURL, true);+ openURLExternally(Links.links.changelogURL, true);}}>- Imprint- </Button>- )}- {privacyURL && (- <Button- size="small"- color="primary"- onClick={() => {- openURLExternally(privacyURL, true);- }}+ Changelog+ </TsButton>+ <TsButton+ style={{ marginRight: 5 }}+ data-tid="openLicenseDialog"+ onClick={() => openLicenseDialog()}>- Privacy Policy- </Button>- )}- <Button- size="small"- color="primary"- onClick={() => {- openURLExternally(Links.links.changelogURL, true);- }}- >- Changelog- </Button>- <Button- size="small"- color="primary"- data-tid="openLicenseDialog"- onClick={() => openLicenseDialog()}- >- {t('core:license')}- </Button>+ {t('core:license')}+ </TsButton>+ </div></Typography></DialogContent>- <DialogActions- style={fullScreen ? { padding: '10px 30px 30px 30px' } : {}}- >+ <DialogActions>{!Pro && (- <Button+ <TsButtondata-tid="checkForUpdates"title={t('core:checkForNewVersion')}onClick={() => {openURLExternally(Links.links.productsOverview, true);}}- color="primary"- // variant="outlined">Upgrade to PRO- </Button>+ </TsButton>)}- <Button+ <TsButtondata-tid="checkForUpdates"title={t('core:checkForNewVersion')}onClick={checkForUpdates}- // variant="outlined"- color="primary">{versionInfo}- </Button>- {/* <Button+ </TsButton>+ {/* <TsButtondata-tid="openLicenseDialog"onClick={this.props.toggleLicenseDialog}>{t('core:license')}- </Button>- <Button+ </TsButton>+ <TsButtondata-tid="openThirdPartyLibsDialog"onClick={this.props.toggleThirdPartyLibsDialog}>{t('core:thirdPartyLibs')}- </Button> */}- <Button+ </TsButton> */}+ <TsButtondata-tid="closeAboutDialog"onClick={onClose}variant="contained"- color="primary">{t('core:ok')}- </Button>+ </TsButton></DialogActions></TranslucentDialog>);