Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "add verbatimModuleSyntax to tsconfig" #27

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11,145 changes: 4,870 additions & 6,275 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/Application.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type DefaultTheme, withTheme } from "../theme";
import { DefaultTheme, withTheme } from "../theme";
import type { MouseEventHandler } from "react";
import type { Radius } from "./Provider";
import { Paragraph } from "./Paragraph";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type DefaultTheme, withTheme } from "../theme";
import { DefaultTheme, withTheme } from "../theme";
import type { Radius } from "./Provider";
import { styled } from "@linaria/react";

Expand Down
2 changes: 1 addition & 1 deletion src/components/ConnectButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ChevronDownIcon, UserIcon } from "@iconicicons/react";
import { type DefaultTheme, withTheme } from "../theme";
import { DefaultTheme, withTheme } from "../theme";
import useAddress from "../hooks/active_address";
import useConnection from "../hooks/connection";
import useProfileModal from "../hooks/profile";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modal/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type DefaultTheme, withTheme } from "../../theme";
import { DefaultTheme, withTheme } from "../../theme";
import type { PropsWithChildren } from "react";
import { styled } from "@linaria/react";

Expand Down
2 changes: 1 addition & 1 deletion src/components/Modal/Head.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type DefaultTheme, withTheme } from "../../theme";
import { DefaultTheme, withTheme } from "../../theme";
import type { PropsWithChildren } from "react";
import { CloseIcon } from "@iconicicons/react";
import { styled } from "@linaria/react";
Expand Down
10 changes: 5 additions & 5 deletions src/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { type DefaultTheme, type Radius, withTheme } from "../../theme";
import { DefaultTheme, Radius, withTheme } from "../../theme";
import { version } from "../../../package.json";
import type { PropsWithChildren } from "react";
import useMobile from "../../hooks/mobile";
import { styled } from "@linaria/react";
import {
AnimatePresence,
type ForwardRefComponent,
type HTMLMotionProps,
ForwardRefComponent,
HTMLMotionProps,
motion,
type MotionProps,
type Variants
MotionProps,
Variants
} from "framer-motion";

export function Modal({
Expand Down
2 changes: 1 addition & 1 deletion src/components/Paragraph.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type DefaultTheme, withTheme } from "../theme";
import { DefaultTheme, withTheme } from "../theme";
import { styled } from "@linaria/react";

export const Paragraph = withTheme(styled.p<{
Expand Down
4 changes: 2 additions & 2 deletions src/components/Provider.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";

import { type PropsWithChildren, useEffect, useMemo, useReducer } from "react";
import { darkTheme, type Font, lightTheme, ThemeProvider } from "../theme";
import { PropsWithChildren, useEffect, useMemo, useReducer } from "react";
import { darkTheme, Font, lightTheme, ThemeProvider } from "../theme";
import { useSyncPermissions } from "../hooks/permissions";
import { useSyncAddress } from "../hooks/active_address";
import RestoreSession from "../modals/RestoreSession";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Title.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type DefaultTheme, withTheme } from "../theme";
import { DefaultTheme, withTheme } from "../theme";
import { styled } from "@linaria/react";
import { rgbToString } from "../utils";

Expand Down
2 changes: 1 addition & 1 deletion src/context/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Actions, GlobalState } from "./faces";
import { type Dispatch, createContext } from "react";
import { Dispatch, createContext } from "react";

export const defaultState: GlobalState = {
activeModal: false,
Expand Down
2 changes: 1 addition & 1 deletion src/modals/Connect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ChevronLeftIcon } from "@iconicicons/react";
import type { Radius } from "../components/Provider";
import { Paragraph } from "../components/Paragraph";
import { Footer } from "../components/Modal/Footer";
import { type DefaultTheme, withTheme } from "../theme";
import { DefaultTheme, withTheme } from "../theme";
import { Modal } from "../components/Modal/Modal";
import type Strategy from "../strategy/Strategy";
import { Loading } from "../components/Loading";
Expand Down
2 changes: 1 addition & 1 deletion src/modals/Profile.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CopyIcon, LogOutIcon, UserIcon } from "@iconicicons/react";
import type { Radius } from "../components/Provider";
import { Paragraph } from "../components/Paragraph";
import { type DefaultTheme, withTheme } from "../theme";
import { DefaultTheme, withTheme } from "../theme";
import useActiveStrategy from "../hooks/strategy";
import { Modal } from "../components/Modal/Modal";
import useConnection from "../hooks/connection";
Expand Down
2 changes: 1 addition & 1 deletion src/modals/RestoreSession.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { STRATEGY_STORE, syncStrategies } from "../strategy";
import type { Radius } from "../components/Provider";
import { type DefaultTheme, withTheme } from "../theme";
import { DefaultTheme, withTheme } from "../theme";
import { Modal } from "../components/Modal/Modal";
import type Strategy from "../strategy/Strategy";
import type { Variants } from "framer-motion";
Expand Down
2 changes: 1 addition & 1 deletion src/strategy/strategies/Othent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { DataItem, DispatchResult, GatewayConfig, PermissionType } from "ar
import type Transaction from "arweave/web/lib/transaction";
import type { AppInfo } from "arweave-wallet-connector";
import type Strategy from "../Strategy";
import { Othent, type OthentOptions, type AppInfo as OthentAppInfo } from "@othent/kms";
import { Othent, OthentOptions, AppInfo as OthentAppInfo } from "@othent/kms";

type ListenerFunction = (address: string) => void;

Expand Down
2 changes: 1 addition & 1 deletion src/theme.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createTheming, type ThemingType } from "@callstack/react-theme-provider";
import { createTheming, ThemingType } from "@callstack/react-theme-provider";

export const lightTheme: DisplayTheme = {
primaryText: "0, 0, 0",
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"verbatimModuleSyntax": true
"jsx": "react-jsx"
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
Expand Down