-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve imports/exports for the dApp (#926)
Closes AENG-148 - We should use default exports in the entire dApp. For this purpose, the eslint `import/prefer-default-export` rule was enabled. The dApp code has been updated to comply with this rule. - Imports for assets have also been improved by adding an `index.ts` file.
- Loading branch information
Showing
202 changed files
with
836 additions
and
649 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export * from "./useAcreContext" | ||
export * from "./useStakeFlow" | ||
export { default as useAcreContext } from "./useAcreContext" | ||
export { default as useInitializeWithdraw } from "./useInitializeWithdraw" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import SegmentRegular from "./Segment-Regular.otf" | ||
import SegmentMedium from "./Segment-Medium.otf" | ||
import SegmentSemiBold from "./Segment-SemiBold.otf" | ||
import SegmentBold from "./Segment-Bold.otf" | ||
import SegmentBlack from "./Segment-Black.otf" | ||
|
||
export { | ||
SegmentRegular, | ||
SegmentMedium, | ||
SegmentSemiBold, | ||
SegmentBold, | ||
SegmentBlack, | ||
} |
2 changes: 1 addition & 1 deletion
2
dapp/src/assets/icons/AcreLogo.tsx → dapp/src/assets/icons/AcreLogoIcon.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
dapp/src/assets/icons/Pause.tsx → dapp/src/assets/icons/PauseIcon.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
export * from "./AcreLogo" | ||
export * from "./Pause" | ||
export { default as AcreLogoIcon } from "./AcreLogoIcon" | ||
export { default as PauseIcon } from "./PauseIcon" | ||
export { default as LoadingSpinnerSuccessIcon } from "./LoadingSpinnerSuccessIcon" | ||
export * from "./BitcoinIcon" | ||
export * from "./CableWithPlugIcon" | ||
export * from "./MezoSignIcon" | ||
export * from "./AcreSignIcon" | ||
export * from "./BitcoinsStackErrorIcon" | ||
export { default as BitcoinIcon } from "./BitcoinIcon" | ||
export { default as CableWithPlugIcon } from "./CableWithPlugIcon" | ||
export { default as MezoSignIcon } from "./MezoSignIcon" | ||
export { default as AcreSignIcon } from "./AcreSignIcon" | ||
export { default as BitcoinsStackErrorIcon } from "./BitcoinsStackErrorIcon" | ||
export { default as MatsIcon } from "./MatsIcon" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import acrePointsCardPlaceholder from "./acre-points-card-placeholder.png" | ||
import acrePointsIllustration from "./acre-points-illustration.png" | ||
import beehiveIllustration from "./beehive-illustration.svg" | ||
import emptyState from "./empty-state.svg" | ||
|
||
export { | ||
acrePointsCardPlaceholder, | ||
acrePointsIllustration, | ||
beehiveIllustration, | ||
emptyState, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import step1Video from "./welcome-step-1.mp4" | ||
import step2Video from "./welcome-step-2.mp4" | ||
import step3Video from "./welcome-step-3.mp4" | ||
|
||
export { step1Video, step2Video, step3Video } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.