Skip to content

Commit

Permalink
fix input width
Browse files Browse the repository at this point in the history
  • Loading branch information
RamRamez committed Jul 4, 2024
1 parent d0cc16a commit d6f606a
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions src/components/views/landings/onboarding/main/GetStarted.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ const GetStarted = () => {
const { data } = await client.query({
query: SUBSCRIBE_ONBOARDING,
variables: { email },
fetchPolicy: 'no-cache',
});
if (data?.subscribeOnboarding) {
gToast('You have successfully subscribed.', {
Expand All @@ -55,14 +54,16 @@ const GetStarted = () => {
<OnboardingHeaderWrapperStyled>
<H5 weight={700}>Get started with our Giveth onboarding guide</H5>
<form onSubmit={handleSubmit(onSubmit)}>
<Input
registerName={'email'}
placeholder={'Your email address'}
size={InputSize.MEDIUM}
register={register}
error={errors.email}
registerOptions={requiredOptions.email}
/>
<InputWrapper>
<Input
registerName={'email'}
placeholder={'Your email address'}
size={InputSize.MEDIUM}
register={register}
error={errors.email}
registerOptions={requiredOptions.email}
/>
</InputWrapper>
<StyledButton type='submit'>
Discover the Future of Giving
</StyledButton>
Expand All @@ -71,6 +72,11 @@ const GetStarted = () => {
);
};

const InputWrapper = styled.div`
max-width: 700px;
margin-top: 25px;
`;

const StyledButton = styled.button`
display: flex;
height: 48px;
Expand Down

0 comments on commit d6f606a

Please sign in to comment.