Skip to content

Commit

Permalink
chore: run eslint --fix on site
Browse files Browse the repository at this point in the history
  • Loading branch information
neekolas committed Dec 5, 2023
1 parent a1ef5df commit 456026c
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 11 deletions.
4 changes: 2 additions & 2 deletions packages/site/src/config/theme.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { createGlobalStyle, DefaultTheme } from 'styled-components';
import type { DefaultTheme } from 'styled-components';
import { createGlobalStyle } from 'styled-components';

const breakpoints = ['600px', '768px', '992px'];

Expand Down Expand Up @@ -115,7 +116,6 @@ export const dark: DefaultTheme = {

/**
* Default style applied to the app.
*
* @param props - Styled Components props.
* @returns Global style React component.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/site/src/utils/button.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Snap } from '../types';
import type { Snap } from '../types';
import { isLocalSnap } from './snap';

export const shouldDisplayReconnectButton = (installedSnap?: Snap) =>
Expand Down
2 changes: 0 additions & 2 deletions packages/site/src/utils/localStorage.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Get a local storage key.
*
* @param key - The local storage key to access.
* @returns The value stored at the key provided if the key exists.
*/
Expand All @@ -17,7 +16,6 @@ export const getLocalStorage = (key: string) => {

/**
* Set a value to local storage at a certain key.
*
* @param key - The local storage key to set.
* @param value - The value to set.
*/
Expand Down
1 change: 0 additions & 1 deletion packages/site/src/utils/metamask.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { ethers } from 'ethers';
/**
* Detect if the wallet injecting the ethereum object is Flask.
*
* @returns True if the MetaMask version is Flask, false otherwise.
*/
export const isFlask = async () => {
Expand Down
5 changes: 1 addition & 4 deletions packages/site/src/utils/snap.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { defaultSnapOrigin } from '../config';
import { getSnapParams } from '../config/snap';
import { GetSnapsResponse, Snap } from '../types';
import type { GetSnapsResponse, Snap } from '../types';

/**
* Get the installed snaps in MetaMask.
*
* @returns The snaps installed in MetaMask.
*/
export const getSnaps = async (): Promise<GetSnapsResponse> => {
Expand All @@ -15,7 +14,6 @@ export const getSnaps = async (): Promise<GetSnapsResponse> => {

/**
* Connect a snap to MetaMask.
*
* @param snapId - The ID of the snap.
* @param params - The params to pass with the snap to connect.
*/
Expand All @@ -33,7 +31,6 @@ export const connectSnap = async (

/**
* Get the snap from MetaMask.
*
* @param version - The version of the snap to install (optional).
* @returns The snap object returned by the extension.
*/
Expand Down
1 change: 0 additions & 1 deletion packages/site/src/utils/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { getLocalStorage, setLocalStorage } from './localStorage';
/**
* Get the user's preferred theme in local storage.
* Will default to the browser's preferred theme if there is no value in local storage.
*
* @returns True if the theme is "dark" otherwise, false.
*/
export const getThemePreference = () => {
Expand Down

0 comments on commit 456026c

Please sign in to comment.