Skip to content

Commit

Permalink
fix(imports): update all imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Apr 25, 2024
1 parent 317f570 commit f0b2235
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 25 deletions.
14 changes: 7 additions & 7 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import {
createRoutesFromElements,
} from 'react-router-dom';

import AppRouterLayout from './layout/AppRouterLayout';
import Loading from './pages/Loading';
import NotFound from './pages/NotFound';
import AppRouterLayout from './layout/AppRouterLayout.js';
import Loading from './pages/Loading.js';
import NotFound from './pages/NotFound.js';

const Dashboard = React.lazy(() => import('./pages/Dashboard'));
const Gateways = React.lazy(() => import('./pages/Gateways'));
const Staking = React.lazy(() => import('./pages/Staking'));
const Observers = React.lazy(() => import('./pages/Observers'));
const Dashboard = React.lazy(() => import('./pages/Dashboard.js'));
const Gateways = React.lazy(() => import('./pages/Gateways.js'));
const Staking = React.lazy(() => import('./pages/Staking.js'));
const Observers = React.lazy(() => import('./pages/Observers.js'));

const sentryCreateBrowserRouter = wrapCreateBrowserRouter(createBrowserRouter);

Expand Down
4 changes: 2 additions & 2 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Button, { ButtonType } from './Button';
import { ConnectIcon } from './icons';
import Button, { ButtonType } from './Button.js';
import { ConnectIcon } from './icons/index.js';

const Header = () => {
return (
Expand Down
4 changes: 2 additions & 2 deletions src/layout/AppRouterLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Outlet } from 'react-router-dom';

import Notifications from './Notifications';
import Sidebar from './Sidebar';
import Notifications from './Notifications.js';
import Sidebar from './Sidebar.js';

function AppRouterLayout() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/layout/Notifications.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { captureException } from '@sentry/browser';
import { errorEmitter, notificationEmitter } from '@src/services/events';
import { errorEmitter, notificationEmitter } from '@src/services/events.js';
import { useEffect } from 'react';

function Notifications() {
Expand Down
4 changes: 2 additions & 2 deletions src/layout/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ARIO_DOCS_URL, GATEWAY_CONTRACT_URL } from '@src/constants';
import { ARIO_DOCS_URL, GATEWAY_CONTRACT_URL } from '@src/constants.js';
import { MouseEventHandler, ReactElement, useEffect, useState } from 'react';
import { useLocation, useNavigate } from 'react-router-dom';

Expand All @@ -13,7 +13,7 @@ import {
LinkArrowIcon,
OpenDrawerIcon,
StakingIcon,
} from '../components/icons';
} from '../components/icons/index.js';

const SideBarButton = ({
icon,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Dashboard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Header from '@src/components/Header';
import Header from '@src/components/Header.js';

function Dashboard() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Gateways.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Header from '@src/components/Header';
import Header from '@src/components/Header.js';

function Gateways() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Observers.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Header from '@src/components/Header';
import Header from '@src/components/Header.js';

function Observers() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Staking.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Header from '@src/components/Header';
import Header from '@src/components/Header.js';

function Staking() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/services/events.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import EventEmitter from 'eventemitter3';
import {EventEmitter} from 'eventemitter3';

// error emitter captures errors and sends them to sentry. Can be coupled with a notification API.
export const errorEmitter = new EventEmitter();
Expand Down
2 changes: 1 addition & 1 deletion src/services/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Readable } from 'stream';
import { ReadableStream } from 'stream/web';
import { Logger } from 'winston';

import { FailedRequestError, HTTPClient } from '../../types';
import { FailedRequestError, HTTPClient } from '../../types/index.js'

export class AxiosHTTPService implements HTTPClient {
private axios: AxiosInstance;
Expand Down
4 changes: 2 additions & 2 deletions src/store/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { THEME_TYPES } from '@src/constants';
import { applyThemePreference } from '@src/utils';
import { THEME_TYPES } from '@src/constants.js';
import { applyThemePreference } from '@src/utils.js';
import { create } from 'zustand';

export type ThemeType = (typeof THEME_TYPES)[keyof typeof THEME_TYPES];
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"resolveJsonModule": true,
"isolatedModules": true,
Expand Down
4 changes: 2 additions & 2 deletions types/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './common';
export * from './error';
export * from './common.js';
export * from './error.js';

0 comments on commit f0b2235

Please sign in to comment.