on master help sign in
fix: empty state for points page
commit2512563d08a46abdbba10165c45e4d6afdf2ff27 authorMatt Condon (shrugs) <mattgcondon@gmail.com> dateTue 30 Jul 2019, 07:47 (7 years ago) parent3820abb
1 file changed+9
src/views/Points.js+9
src/views/Points.js+9
@@ -115,6 +115,8 @@ export default function Points() {
115115 ...spawningPoints,
116116 ];
117117
118+ const isEmpty = incomingPoints.length === 0 && multipassPoints.length === 0;
119+
118120 // sync display details for known points
119121 useSyncKnownPoints([
120122 ...ownedPoints,
@@ -137,6 +139,13 @@ export default function Points() {
137139 </Grid.Item>
138140 )}
139141
142+ {isEmpty && (
143+ <Grid.Item full as={HelpText} className="mt8 t-center">
144+ No points to display. This wallet is not the owner or proxy for any
145+ points.
146+ </Grid.Item>
147+ )}
148+
140149 {incomingPoints.length > 0 && (
141150 <Grid.Item full as={Grid} gap={1} className="mb6">
142151 <Grid.Item full as={H5}>