Skip to content

Commit

Permalink
Merge pull request #302 from Synthetixio/lint-harder
Browse files Browse the repository at this point in the history
Lint harder
  • Loading branch information
thisispixelperfect authored Oct 24, 2024
2 parents 55d7adf + 07c1080 commit 5aeafd0
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 563 deletions.
547 changes: 0 additions & 547 deletions src/components/ArrowPath/ArrowPath.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/components/ArrowPath/index.tsx

This file was deleted.

9 changes: 6 additions & 3 deletions src/components/EmailSignup/EmailSignup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ import {
import { AppEvents, initialState, reducer } from './reducer';
import { emailRegex } from 'src/utils/validation';
import { MARKETING_URI } from 'src/constants/urls';
import localStore from 'src/utils/localStore';
import {
get as localStoreGet,
set as localStoreSet,
} from 'src/utils/localStore';

interface EmailSignupProps extends FlexProps {
page?: string;
Expand All @@ -25,7 +28,7 @@ export const EmailSignup = ({ page = 'home', ...props }: EmailSignupProps) => {

useEffect(() => {
const previouslySubmitted =
localStore.get('marketing-form-submission') === true;
localStoreGet('marketing-form-submission') === true;

if (previouslySubmitted) {
dispatch({ type: AppEvents.SUBMIT });
Expand Down Expand Up @@ -53,7 +56,7 @@ export const EmailSignup = ({ page = 'home', ...props }: EmailSignupProps) => {
});

dispatch({ type: AppEvents.SUBMIT });
localStore.set('marketing-form-submission', true);
localStoreSet('marketing-form-submission', true);
inputRef!.current!.value = '';
} catch (error) {
dispatch({
Expand Down
2 changes: 0 additions & 2 deletions src/components/EmailSignup/reducer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import localStore from 'src/utils/localStore';

type FormState = {
errorMessage: string | null;
submitted: boolean;
Expand Down
4 changes: 2 additions & 2 deletions src/components/IntegratorCardPerps/IntegratorCardPerps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const IntegratorCardPerps = ({
>
<Hide above="md">
<Flex alignItems="center" h="40px" mb="16px">
<Image src={uri} h={{ base: '40px', xl: '50px' }} />
<Image src={uri} h={{ base: '40px', xl: '50px' }} alt="Integrator" />
<Text
my="16px"
fontSize="lg"
Expand All @@ -63,7 +63,7 @@ export const IntegratorCardPerps = ({
</Text>
</Hide>
<Show above="md">
<Image src={uri} h={{ base: '40px', xl: '50px' }} />
<Image src={uri} h={{ base: '40px', xl: '50px' }} alt="Integrator" />
<Heading my="16px" fontSize="18px">
{name}
</Heading>
Expand Down
3 changes: 2 additions & 1 deletion src/components/Logo/Logo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Link, LinkProps } from '@chakra-ui/react';
import Image from 'next/image';

interface LogoProps extends LinkProps {
small?: boolean;
Expand All @@ -9,7 +10,7 @@ export const Logo = ({ small, ...rest }: LogoProps) => {

return (
<Link href="/" {...rest}>
<img src={src} alt="synthetix" />
<Image src={src} alt="Synthetix" />
</Link>
);
};
1 change: 0 additions & 1 deletion src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export * from './Footer';
export * from './Button';
export * from './Logo';
export * from './PageLayout';
export * from './ArrowPath';
export * from './BoxLink';
export * from './IntegratorCard';
export * from './PageLayout';
Expand Down
3 changes: 2 additions & 1 deletion src/sections/governance/vision.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export const Vision = () => {
maxW={{ lg: '399px', xl: '700px' }}
>
Our new roadmap and vision realigns our efforts, increases awareness in
the crypto community, and sets clear objectives for Synthetix's future.
the crypto community, and sets clear objectives for Synthetix&apos;s
future.
</Text>

<Link href={links.vision} target="_blank">
Expand Down
5 changes: 0 additions & 5 deletions src/utils/localStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,3 @@ export function get<T>(key: string): T | null {
}
return null;
}

export default {
set,
get,
};

0 comments on commit 5aeafd0

Please sign in to comment.