diff options
author | fragosti <francesco.agosti93@gmail.com> | 2019-01-02 23:08:15 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2019-01-02 23:08:15 +0800 |
commit | 5721b25c3ace6e0dc336e2bfc7a0e45fd575a5a8 (patch) | |
tree | 81c617c6ed0029e893517a0b12082e3f7d7bde56 /packages/instant/src/containers | |
parent | 586a8ba8e7427eab2fdc974dab6483105b7cd5b6 (diff) | |
download | dexon-sol-tools-5721b25c3ace6e0dc336e2bfc7a0e45fd575a5a8.tar dexon-sol-tools-5721b25c3ace6e0dc336e2bfc7a0e45fd575a5a8.tar.gz dexon-sol-tools-5721b25c3ace6e0dc336e2bfc7a0e45fd575a5a8.tar.bz2 dexon-sol-tools-5721b25c3ace6e0dc336e2bfc7a0e45fd575a5a8.tar.lz dexon-sol-tools-5721b25c3ace6e0dc336e2bfc7a0e45fd575a5a8.tar.xz dexon-sol-tools-5721b25c3ace6e0dc336e2bfc7a0e45fd575a5a8.tar.zst dexon-sol-tools-5721b25c3ace6e0dc336e2bfc7a0e45fd575a5a8.zip |
feat: give all stateless components a displayName or make them private
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r-- | packages/instant/src/containers/latest_error.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/instant/src/containers/latest_error.tsx b/packages/instant/src/containers/latest_error.tsx index 0d4349124..6da4558ef 100644 --- a/packages/instant/src/containers/latest_error.tsx +++ b/packages/instant/src/containers/latest_error.tsx @@ -14,7 +14,7 @@ import { zIndex } from '../style/z_index'; import { Asset, DisplayStatus, Omit, SlideAnimationState } from '../types'; import { errorFlasher } from '../util/error_flasher'; -export interface LatestErrorComponentProps { +interface LatestErrorComponentProps { asset?: Asset; latestErrorMessage?: string; animationState: SlideAnimationState; @@ -22,7 +22,7 @@ export interface LatestErrorComponentProps { onOverlayClick: () => void; } -export const LatestErrorComponent: React.StatelessComponent<LatestErrorComponentProps> = props => { +const LatestErrorComponent: React.StatelessComponent<LatestErrorComponentProps> = props => { if (!props.latestErrorMessage) { // Render a hidden SlidingError such that instant does not move when a real error is rendered. return ( |