-
Notifications
You must be signed in to change notification settings - Fork 13
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
refactor(wallet, explorer, dashboard): change default export for components #4617
base: develop
Are you sure you want to change the base?
Conversation
This pull request has been deployed to Vercel. Latest commit: 8cf12c3 |
This pull request has been deployed to Vercel. Latest commit: 8cf12c3 ✅ Preview: https://apps-ui-iijriwkil-iota1.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 8cf12c3 ✅ Preview: https://rebased-explorer-dak0agztx-iota1.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 02952d4 ✅ Preview: https://apps-ui-pesrqf21z-iota1.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 02952d4 ✅ Preview: https://rebased-explorer-medsoaabn-iota1.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 02952d4 |
This pull request has been deployed to Vercel. Latest commit: 02952d4 ✅ Preview: https://wallet-dashboard-42cpkwr6j-iota1.vercel.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, these files need to be updated too:
apps/wallet/src/ui/app/helpers/index.ts
apps/wallet/src/ui/app/hooks/index.ts
🙏 🙏
@@ -3,12 +3,12 @@ | |||
// SPDX-License-Identifier: Apache-2.0 | |||
|
|||
import { NetworkSelector } from '../network'; | |||
import Search from '../search/Search'; | |||
import { Search } from '../search/Search'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import { Search } from '../search/Search'; | |
import { Search } from '../search'; |
import { Footer } from '../footer/Footer'; | ||
import { Header } from '../header/Header'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import { Footer } from '../footer/Footer'; | |
import { Header } from '../header/Header'; | |
import { Footer, Header } from '..'; |
@@ -9,7 +9,7 @@ import clsx from 'clsx'; | |||
import { useAnimate } from 'framer-motion'; | |||
import { type ImgHTMLAttributes, useEffect, useState } from 'react'; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -9,7 +9,7 @@ import clsx from 'clsx'; | |||
import { useAnimate } from 'framer-motion'; | |||
import { type ImgHTMLAttributes, useEffect, useState } from 'react'; | |||
|
|||
import useImage from '~/hooks/useImage'; | |||
import { useImage } from '~/hooks/useImage'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import { useImage } from '~/hooks/useImage'; | |
import { useImage } from '~/hooks'; |
import { PkgView } from './views/PkgView'; | ||
import { TokenView } from './views/TokenView'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add an index.ts file to organize these imports? that way, we can simplify them like this:
import { PkgView } from './views/PkgView'; | |
import { TokenView } from './views/TokenView'; | |
import { PkgView, TokenView } from './views'; |
@@ -68,7 +69,7 @@ const HIDDEN_MENU_PATHS = [ | |||
|
|||
const NOTIFY_USER_ACTIVE_INTERVAL = 5 * 1000; // 5 seconds | |||
|
|||
const App = () => { | |||
export const App = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export const App = () => { | |
export function App() { |
@@ -11,7 +11,7 @@ interface HomePageProps { | |||
disableNavigation?: boolean; | |||
} | |||
|
|||
const HomePage = ({ disableNavigation }: HomePageProps) => { | |||
export const HomePage = ({ disableNavigation }: HomePageProps) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export const HomePage = ({ disableNavigation }: HomePageProps) => { | |
export function HomePage({ disableNavigation }: HomePageProps) { |
import { Interstitial } from '../interstitial'; | ||
import { type InterstitialConfig } from '../interstitial'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import { Interstitial } from '../interstitial'; | |
import { type InterstitialConfig } from '../interstitial'; | |
import { Interstitial, type InterstitialConfig } from '../interstitial'; |
@@ -4,16 +4,14 @@ | |||
|
|||
import { Route, Routes } from 'react-router-dom'; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -23,7 +23,7 @@ import { createRoot } from 'react-dom/client'; | |||
import { Provider } from 'react-redux'; | |||
import { HashRouter } from 'react-router-dom'; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Links to any relevant issues
Closes #4375
Type of change
Change checklist
Tick the boxes that are relevant to your changes, and delete any items that are not.