on master help sign in
Remove "view point" button
c1f926eFang
src/views/Points.js+15−29
@@ -204,11 +204,6 @@ export default function Points() {
204 push,
204 push,
205 ]);
205 ]);
206
206
207− const goViewPoint = useCallback(() => push(names.VIEW_POINT), [
208− names.VIEW_POINT,
209− push,
210− ]);
211−
212 if (
207 if (
213 loading ||
208 loading ||
214 (allPoints.length === 1 &&
209 (allPoints.length === 1 &&
@@ -321,30 +316,21 @@ export default function Points() {
321 </Grid.Item>
316 </Grid.Item>
322 )}
317 )}
323
318
324− <Footer>
325− <Grid>
326− <Grid.Divider />
327− {isEclipticOwner && (
319+ {isEclipticOwner && (
328− <>
320+ <Footer>
321+ <Grid>
322+ <Grid.Divider />
329− <Grid.Item
323+ <Grid.Item
330− full
324+ full
331− as={ForwardButton}
325+ as={ForwardButton}
332− detail="You have the authority to create a new Galaxy."
326+ detail="You have the authority to create a new Galaxy."
333− onClick={goCreateGalaxy}>
327+ onClick={goCreateGalaxy}>
334− Create a galaxy
328+ Create a galaxy
335− </Grid.Item>
329+ </Grid.Item>
336− <Grid.Divider />
330+ <Grid.Divider />
337− </>
331+ </Grid>
332+ </Footer>
338− )}
333+ )}
339− <Grid.Item
340− full
341− as={ForwardButton}
342− detail="View an ID"
343− onClick={goViewPoint}>
344− View a point
345− </Grid.Item>
346− </Grid>
347− </Footer>
348 </Grid>
334 </Grid>
349 </View>
335 </View>
350 );
336 );