Skip to content

Commit

Permalink
Merge pull request #80 from Chat-Your-Way/CHAT-184-fix-regist-compone…
Browse files Browse the repository at this point in the history
…nt-form-button

CHAT-184-fix-regist-component-form-button
  • Loading branch information
IlliaKomissarov authored Feb 4, 2024
2 parents 6aeef63 + eea18c0 commit 6a70a4b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const defaultValues = {
nickname: '',
email: '',
password: '',
avatar: '1',
avatar: '3',
confirm: '',
agreement: false,
};
Expand Down Expand Up @@ -109,7 +109,7 @@ function RegistrationPageComponent() {
<RegistrationButton
type="submit"
label="Створити акаунт"
isDisabled={!isValid}
disabled={!isValid}
/>
</RegistrationForm>
</RegistrationWrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,25 +85,10 @@ export const RegistrationButton = styled(DefaultButton)`
padding: 8px 12px;
justify-content: center;
align-items: center;
cursor: pointer;
gap: 8px;
opacity: 1;
${(p) => p.theme.typography.h5}
&:hover {
box-shadow: 0px 1px 8px 4px rgba(134, 134, 220, 0.2);
}
${(p) => {
return (
p.isDisabled &&
`
opacity: 0.8;
color: ${p.theme.palette.primary.dark};
background-color: ${p.theme.palette.primary.disabled};
border: 1px solid ${p.theme.palette.primary.light};
`
);
}}
`;
2 changes: 1 addition & 1 deletion src/components/RegistrationPageComponent/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './RegistrationPageComponent';
export { default } from './RegistrationPageComponent.jsx';
1 change: 0 additions & 1 deletion src/pages/RegistrationPage/RegistrationPage.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line max-len
import RegistrationPageComponent from '../../components/RegistrationPageComponent';

function RegistrationPage() {
Expand Down

0 comments on commit 6a70a4b

Please sign in to comment.