address review feedback
- SessionModal: merge caller-provided className with styles.modal instead
of letting it be clobbered by the {...props} spread (matches ReplayModal).
- e2e test: narrow boundingBox()/viewport nullability without non-null
assertions (keeps biome's noNonNullAssertion happy) via a getSheetBox
helper and a shared VIEWPORT constant.
This commit is contained in:
1 parent
8dcd2c6190
commit
3c467e54d5
2 files changed
+17
-8
No files matched your search
@@ -8,7 +8,7 @@ export interface SessionModalProps extends ModalProps {
|
||||
websiteId: string;
|
||||
}
|
||||
|
||||
export function SessionModal({ websiteId, ...props }: SessionModalProps) {
|
||||
export function SessionModal({ websiteId, className, ...props }: SessionModalProps) {
|
||||
const {
|
||||
router,
|
||||
pathname,
|
||||
@@ -26,7 +26,7 @@ export function SessionModal({ websiteId, ...props }: SessionModalProps) {
|
||||
<Modal
|
||||
placement="bottom"
|
||||
offset="80px"
|
||||
className={styles.modal}
|
||||
className={[styles.modal, className].filter(Boolean).join(' ')}
|
||||
isOpen={!!session}
|
||||
onOpenChange={handleOpenChange}
|
||||
isDismissable
|
||||
|
||||
Reference in new issue
Block a user