Skip to content

Commit

Permalink
chore: remove light buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
escapedcat committed Oct 1, 2024
1 parent 6cb0468 commit e7f33a4
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/components/ConfirmModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const ConfirmModal: ConfirmModalComponent = ({
<ModalBody>{children || props.body}</ModalBody>

<ModalFooter>
<Button variant="light" onClick={onClose} disabled={isLoading}>
<Button onClick={onClose} disabled={isLoading}>
{cancelText || t("settings.cancel")}
</Button>
<Button
Expand Down
6 changes: 1 addition & 5 deletions src/pages/Home/OpenChannelModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,7 @@ export default function OpenChannelModal({ balance, disclosure }: Props) {
</ConfirmModal.Body>

<ConfirmModal.Footer>
<Button
variant="light"
onClick={disclosure.onClose}
disabled={isLoading}
>
<Button onClick={disclosure.onClose} disabled={isLoading}>
{t("settings.cancel")}
</Button>

Expand Down
4 changes: 1 addition & 3 deletions src/pages/Home/ReceiveModal/QRCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ const ReceiveOnChain: FC<Props> = ({ address, onRefreshHandler }) => {

{onRefreshHandler && (
<div>
<Button variant="light" onClick={onRefreshHandler}>
{t("wallet.refresh")}
</Button>
<Button onClick={onRefreshHandler}>{t("wallet.refresh")}</Button>
</div>
)}
</>
Expand Down
3 changes: 1 addition & 2 deletions src/pages/Home/SendModal/ConfirmSend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ const ConfirmSend: FC<Props> = ({ confirmData, back, balance, close }) => {
<ConfirmModal.Header>
<Button
type="button"
variant="light"
onClick={() => back(confirmData)}
startContent={<ChevronLeftIcon className="inline-block h-4 w-4" />}
>
Expand Down Expand Up @@ -228,7 +227,7 @@ const ConfirmSend: FC<Props> = ({ confirmData, back, balance, close }) => {
</ConfirmModal.Body>

<ConfirmModal.Footer>
<Button variant="light" onClick={() => close()} disabled={isLoading}>
<Button onClick={() => close()} disabled={isLoading}>
{t("settings.cancel")}
</Button>

Expand Down
1 change: 0 additions & 1 deletion src/pages/Settings/ChangePwModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ const ChangePwModal: FC = () => {

<ModalFooter>
<Button
variant="light"
onClick={() => {
confirmModal.onClose();
reset();
Expand Down
1 change: 0 additions & 1 deletion src/pages/Setup/FormatDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export default function FormatDialog({ containsBlockchain, callback }: Props) {
<Button
type="button"
color="danger"
variant="light"
onClick={() => confirmModal.onOpen()}
>
{t("setup.cancel")}
Expand Down
1 change: 0 additions & 1 deletion src/pages/Setup/InputNodeName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ export default function InputNodeName({ callback }: Props) {
<Button
type="button"
color="danger"
variant="light"
onClick={() => confirmModal.onOpen()}
>
{t("setup.cancel")}
Expand Down
1 change: 0 additions & 1 deletion src/pages/Setup/InputPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ export default function InputPassword({ passwordType, callback }: Props) {
<Button
type="button"
color="secondary"
variant="light"
onClick={() => confirmModal.onOpen()}
>
{t("setup.cancel")}
Expand Down
1 change: 0 additions & 1 deletion src/pages/Setup/MigrationDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export default function MigrationDialog({
<Button
type="button"
color="secondary"
variant="light"
onClick={() => callback(true)}
>
{t("setup.yes_and_migrate")}
Expand Down
6 changes: 1 addition & 5 deletions src/pages/Setup/RecoveryDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ export default function RecoveryDialog({ setupPhase, callback }: Props) {
<Button onClick={() => callback(true)} color="primary">
{t("setup.yes")}
</Button>
<Button
onClick={() => callback(false)}
color="secondary"
variant="light"
>
<Button onClick={() => callback(false)} color="secondary">
{t("setup.other_options")}
</Button>
</article>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Setup/StartDoneDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function StartDoneDialog({ setupPhase, callback }: Props) {
<Button onClick={() => callback(false)} color="primary">
{buttonText}
</Button>
<Button onClick={() => confirmModal.onOpen()} variant="light">
<Button onClick={() => confirmModal.onOpen()}>
{t("setup.cancel")}
</Button>
</article>
Expand Down
1 change: 0 additions & 1 deletion src/pages/Setup/SyncScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ export default function SyncScreen({ data, callback }: Props) {
onClick={() => callback("shutdown", null)}
color="primary"
title={t("setup.sync_restartinfo")}
variant="light"
startContent={<PowerIcon className="inline h-6 w-auto" />}
>
{t("settings.shutdown")}
Expand Down

0 comments on commit e7f33a4

Please sign in to comment.