feat: improve dialogs ux

This commit is contained in:
thecodrr
2020-10-03 15:00:05 +05:00
parent cc441bd493
commit cce66b8fee
5 changed files with 9 additions and 9 deletions

View File

@@ -18,18 +18,18 @@ function Dialog(props) {
onRequestClose={props?.negativeButton?.onClick}
style={{
content: {
top: "50%",
left: "50%",
top: isMobile ? 0 : "50%",
left: isMobile ? 0 : "50%",
right: "auto",
bottom: "auto",
marginRight: "-50%",
transform: "translate(-50%, -50%)",
marginRight: isMobile ? 0 : "-50%",
transform: isMobile ? 0 : "translate(-50%, -50%)",
borderWidth: 0,
borderRadius: theme.radii["default"],
backgroundColor: theme.colors.background,
color: theme.colors.text,
boxShadow: "4px 5px 18px 2px #00000038",
width: isMobile ? "95%" : "30%",
width: isMobile ? "100%" : "30%",
padding: 0,
overflowY: "hidden",
},

View File

@@ -16,7 +16,7 @@ function ExportDialog(props) {
buttonsAlignment="center"
negativeButton={{
onClick: props.onClose,
text: "I don't want to export anymore",
text: "Cancel",
}}
>
<Flex justifyContent="center" alignItems="center">

View File

@@ -22,7 +22,7 @@ function LoginDialog(props) {
description={"Signing in allows you to sync your notes across devices."}
icon={Icon.Login}
onCloseClick={onClose}
negativeButton={{ text: "I don't want to", onClick: onClose }}
negativeButton={{ text: "Cancel", onClick: onClose }}
positiveButton={{
text: "Sign me in",
loading: isLoggingIn,

View File

@@ -38,7 +38,7 @@ class MoveDialog extends React.Component {
icon={Icon.Move}
buttonsAlignment="center"
negativeButton={{
text: "Get me out of here",
text: "Cancel",
onClick: props.onClose,
}}
>

View File

@@ -24,7 +24,7 @@ function SignUpDialog(props) {
description={"Sign up for a 14-day free trial (no credit card)."}
icon={Icon.Signup}
onCloseClick={onClose}
negativeButton={{ text: "I don't want to", onClick: onClose }}
negativeButton={{ text: "Cancel", onClick: onClose }}
buttonsAlignment="center"
positiveButton={{
text: "Create my account",