Skip to content

Commit

Permalink
remove unrelated modal changes from branch
Browse files Browse the repository at this point in the history
  • Loading branch information
aswallace committed Dec 18, 2024
1 parent 69fb074 commit fd404ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions packages/core/components/Modal/BaseModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ interface BaseModalProps {
footer?: React.ReactNode;
onDismiss?: () => void;
title?: string;
isStatic?: boolean; // Not draggable
}

const DRAG_OPTIONS: IDragOptions = {
Expand All @@ -32,7 +31,7 @@ export default function BaseModal(props: BaseModalProps) {
isOpen
onDismiss={onDismiss}
containerClassName={styles.container}
dragOptions={props?.isStatic ? undefined : DRAG_OPTIONS}
dragOptions={DRAG_OPTIONS}
scrollableContentClassName={styles.scrollableContainer}
titleAriaId={titleId}
overlay={{ className: styles.overlay }}
Expand All @@ -54,5 +53,4 @@ export default function BaseModal(props: BaseModalProps) {
BaseModal.defaultProps = {
footer: null,
onDismiss: noop,
isStatic: false,
};
1 change: 0 additions & 1 deletion packages/core/components/Modal/EditMetadata/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export default function EditMetadata({ onDismiss }: ModalProps) {
</div>
</>
}
isStatic
onDismiss={onDismissWithWarning}
title={
showWarning
Expand Down

0 comments on commit fd404ae

Please sign in to comment.