diff --git a/components/Account/ChangeFiatCurrency.tsx b/components/Account/ChangeFiatCurrency.tsx index c2144cced..f0cbf4f8e 100644 --- a/components/Account/ChangeFiatCurrency.tsx +++ b/components/Account/ChangeFiatCurrency.tsx @@ -40,13 +40,15 @@ export default function ChangeFiatCurrency ({ preferredCurrencyId }: IProps): Re } } - return (<> -
+ return ( + <> -
- {error !== '' && {error} } - {success !== '' && {success} } - ) + {error !== '' && {error}} + {success !== '' && ( + {success} + )} + + ) } diff --git a/components/Account/ChangePassword.tsx b/components/Account/ChangePassword.tsx index d23d7d838..c3c87f724 100644 --- a/components/Account/ChangePassword.tsx +++ b/components/Account/ChangePassword.tsx @@ -4,7 +4,7 @@ import { ChangePasswordPOSTParameters } from 'utils/validators' import style from './account.module.css' interface IProps { - toggleChangePassword: () => void; + toggleChangePassword: () => void } export default function ChangePassword ({ toggleChangePassword }: IProps): ReactElement { @@ -91,9 +91,11 @@ export default function ChangePassword ({ toggleChangePassword }: IProps): React
-
- {error !== '' ? {error} : } + {error !== '' + ?
+ {error}
+ : null}
diff --git a/components/Account/account.module.css b/components/Account/account.module.css index e85ab6813..b67731025 100644 --- a/components/Account/account.module.css +++ b/components/Account/account.module.css @@ -1,25 +1,7 @@ -.success_message { - color: green; - font-size: 16px; - width: 100%; - height: 100%; - background-color: var(--secondary-bg-color); - top: 0; - left: 0; - display: flex; - align-items: center; - justify-content: center; - border-radius: 10px; -} - .changepw_ctn { width: 100%; - background-color: var(--secondary-bg-color); - max-width: 500px; - padding: 20px 25px; - margin: 4px 0; - border-radius: 10px; position: relative; + margin-top: 20px; } .changepw_ctn form input { @@ -37,19 +19,28 @@ body[data-theme='dark'] .changepw_ctn input { border-radius: 10px; } +.success_message, +.error_message { + background-color: #c5e7ba; + font-size: 14px; + width: 100%; + padding: 5px 10px; + border-radius: 5px; + text-align: center; + margin-top: 0px; + color: rgb(0, 99, 0); + display: inline-block; + font-weight: 400; +} + +.error_message { + color: rgb(172, 0, 0); + background-color: #e7bfba; + } + @media (max-width: 960px) { .changepw_ctn { max-width: unset; } } -.error_message { - color: red; - font-size: 14px; - top: -20px; - left: 0; - background-color: rgba(255, 0, 0, 0.1); - padding: 1px 10px; - border-radius: 5px; -} - diff --git a/components/Organization/organization.module.css b/components/Organization/organization.module.css index a9a97036b..49f4ab832 100644 --- a/components/Organization/organization.module.css +++ b/components/Organization/organization.module.css @@ -1,7 +1,7 @@ .org_ctn { width: 100%; background-color: #fff; - max-width: 800px; + max-width: 700px; padding: 20px; border-radius: 10px; } diff --git a/components/Timezone Selector/index.tsx b/components/Timezone Selector/index.tsx index 0643204c7..9d8367458 100644 --- a/components/Timezone Selector/index.tsx +++ b/components/Timezone Selector/index.tsx @@ -49,18 +49,29 @@ const TimezoneSelector: React.FC = ({ value }) => { void updateTimezone() } + const customStyles = { + option: (provided, state) => ({ + ...provided, + backgroundColor: state.isFocused === true ? '#669cfe' : '', + ':hover': { + backgroundColor: '#669cfe' + } + }) + } + return ( -
+ <>