Skip to content

Commit

Permalink
feat(ui): update style for confirm connect wallet modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Vu Van Duc authored and Vu Van Duc committed May 6, 2024
1 parent bc5d582 commit 503066e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@
width: 100%;
--border-radius: 2rem;
margin-bottom: 2rem;

&.md {
--box-shadow: none;
}
}
}

Expand All @@ -90,5 +94,19 @@
}
}
}

&.responsive-modal .responsive-modal-content {
.confirm-modal-id {
padding: 0.875rem 1.5rem;

& > span {
font-size: 0.875rem;
}
}

.confirm-connect-submit {
margin-bottom: 1.5rem;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { writeToClipboard } from "../../../../utils/clipboard";
import { setToastMsg } from "../../../../../store/reducers/stateCache";
import { ToastMsgType } from "../../../../globals/types";
import { useAppDispatch } from "../../../../../store/hooks";
import { combineClassNames } from "../../../../utils/style";

const ConfirmConnectModal = ({
openModal,
Expand Down Expand Up @@ -59,6 +60,11 @@ const ConfirmConnectModal = ({
closeModal();
};

const confirmClass = combineClassNames("confirm-connect-submit", {
"primary-button": isConnectModal,
"secondary-button": !isConnectModal,
});

return (
<OptionModal
modalIsOpen={openModal}
Expand Down Expand Up @@ -92,7 +98,7 @@ const ConfirmConnectModal = ({
<IonIcon icon={copyOutline} />
</div>
<IonButton
className="confirm-connect-submit primary-button"
className={confirmClass}
data-testid="confirm-connect-btn"
onClick={confirm}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
width: fit-content;
--checkbox-background-checked: var(--ion-color-primary-gradient);
--checkmark-color: var(--ion-color-primary);
--border-width: 0;
}
}

0 comments on commit 503066e

Please sign in to comment.