Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: account switcher design #267

Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
&--mobile {
width: 90vw;
position: unset;
min-height: 400px;
height: auto;
border-radius: 4px;
}
Expand Down
19 changes: 9 additions & 10 deletions src/components/Modal/index.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
import ReactModal from 'react-modal';
import clsx from 'clsx';
import ReactModal from "react-modal";
import clsx from "clsx";

import { ModalHeader } from './ModalHeader';
import { ModalBody } from './ModalBody';
import { ModalFooter } from './ModalFooter';
import { ModalHeader } from "./ModalHeader";
import { ModalBody } from "./ModalBody";
import { ModalFooter } from "./ModalFooter";

import './Modal.scss'
import "./Modal.scss";

export const CUSTOM_STYLES = {
content: {
background: 'none',
border: 'none',
borderRadius: 0,
borderRadius: '10px',
bottom: 'auto',
left: '50%',
margin: 0,
marginRight: '-50%',
padding: 0,
right: 'auto',
top: '50%',
top: '20%',
transform: 'translate(-50%, -50%)',
shayan-deriv marked this conversation as resolved.
Show resolved Hide resolved
transition: 'all 0.35s ease-in-out',
boxShadow: '0px 32px 64px 0px rgba(14, 14, 14, 0.14)'
boxShadow: '0px 32px 64px 0px rgba(14, 14, 14, 0.14)',
},
overlay: {
backgroundColor: 'rgba(0, 0, 0, 0.72)',
Expand All @@ -36,7 +36,6 @@ interface ModalProps extends ReactModal.Props {
}
}


/**
* Represents a modal component.it's a wrapper around react-modal.
* you can use all props exposing from the react-modal.
Expand Down
Loading