Skip to content

Commit

Permalink
fixed react types
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtmeeseeks committed Sep 23, 2024
1 parent 3c6edc3 commit 7de4ff7
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 136 deletions.
53 changes: 0 additions & 53 deletions src/api/ProviderFactory/Profile.tsx

This file was deleted.

25 changes: 0 additions & 25 deletions src/api/ProviderFactory/ethers.ts

This file was deleted.

13 changes: 2 additions & 11 deletions src/api/ProviderFactory/network.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
export interface NetworkContracts {
autIDAddress: string;
daoExpanderRegistryAddress: string;
daoExpanderFactoryAddress: string;
hubRegistryAddress: string;
allowListAddress: string;
hubFactoryAddress: string;
hackerDaoAddress: string;
daoTypesAddress: string;
}
import { DeployedContracts } from "@aut-labs/sdk";

export interface NetworkConfig {
network: string;
Expand All @@ -16,7 +7,7 @@ export interface NetworkConfig {
rpcUrls: string[];
explorerUrls: string[];
biconomyApiKey: string;
contracts: NetworkContracts;
contracts: DeployedContracts;
disabled: boolean;
nativeCurrency: any;
}
3 changes: 2 additions & 1 deletion src/components/Stepper/model.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { ReactElement } from "react";
import { StepWizardChildProps, StepWizardProps } from "react-step-wizard";

export interface StepperChildProps extends Partial<StepWizardProps> {
Expand All @@ -6,7 +7,7 @@ export interface StepperChildProps extends Partial<StepWizardProps> {
}

interface StepComponent {
(props: StepperChildProps): React.ReactElement<StepperChildProps> | null;
(props: StepperChildProps): ReactElement<StepperChildProps> | null;
}

export interface Step {
Expand Down
4 changes: 2 additions & 2 deletions src/components/snackbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import MuiAlert, { AlertProps } from "@mui/material/Alert";
import Snackbar from "@mui/material/Snackbar";
import { RootState } from "@store/store.model";
import { closeSnackbar } from "@store/ui-reducer";
import React from "react";
import { forwardRef } from "react";

const Alert = React.forwardRef<HTMLDivElement, AlertProps>(
const Alert = forwardRef<HTMLDivElement, AlertProps>(
function Alert(props, ref) {
return <MuiAlert elevation={6} ref={ref} variant="filled" {...props} />;
}
Expand Down
31 changes: 0 additions & 31 deletions src/react-app-env.d.ts

This file was deleted.

24 changes: 12 additions & 12 deletions src/theme/theme.overrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ import { PaletteColor } from "@mui/material";

declare module "@mui/material/styles/createTypography" {
interface Typography {
xl?: React.CSSProperties;
xxl?: React.CSSProperties;
subtitle1?: React.CSSProperties;
body?: React.CSSProperties;
subtitle2?: React.CSSProperties;
emphasis?: React.CSSProperties;
xl?: CSSProperties;
xxl?: CSSProperties;
subtitle1?: CSSProperties;
body?: CSSProperties;
subtitle2?: CSSProperties;
emphasis?: CSSProperties;
}

interface TypographyOptions {
xl?: React.CSSProperties;
xxl?: React.CSSProperties;
subtitle1?: React.CSSProperties;
body?: React.CSSProperties;
subtitle2?: React.CSSProperties;
emphasis?: React.CSSProperties;
xl?: CSSProperties;
xxl?: CSSProperties;
subtitle1?: CSSProperties;
body?: CSSProperties;
subtitle2?: CSSProperties;
emphasis?: CSSProperties;
}
}

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "bundler",
"moduleResolution": "node",
"allowImportingTsExtensions": true,
"isolatedModules": true,
"moduleDetection": "force",
Expand Down

0 comments on commit 7de4ff7

Please sign in to comment.