on master help sign in
Merge pull request #993 from urbit/hm/always-show-update-invites

invite-converter: always show button, add empty state

commitd11f71181000369e4d1c258f8ab19b92651b5d82 authortomholford <16504501+tomholford@users.noreply.github.com> dateFri 11 Mar 2022, 09:04 (5 years ago) parentdd11cb5b8674fa
1 file changed+4−6
src/components/L2/InviteConverter.tsx+4−6
src/components/L2/InviteConverter.tsx+4−6
@@ -177,10 +177,6 @@ export const InviteConverter = ({ points }: InviteConverterProps) => {
177177 return (sum += star.children.length);
178178 }, 0) > 0;
179179
180− if (!hasPlanets) {
181− return null;
182− }
183−
184180 if (generatingStatus !== 'initial') {
185181 return (
186182 <CreatingInvitesModal
@@ -235,7 +231,9 @@ export const InviteConverter = ({ points }: InviteConverterProps) => {
235231 mt={3}
236232 p={3}
237233 borderRadius={2}
238− overflowY="auto">
234+ overflowY="auto"
235+ alignItems={hasPlanets ? '' : 'center'}
236+ justifyContent={hasPlanets ? '' : 'center'}>
239237 {Object.entries(starMap).map(([patp, { children }]) => (
240238 <Col mb={4}>
241239 <Row>
@@ -268,7 +266,7 @@ export const InviteConverter = ({ points }: InviteConverterProps) => {
268266 ))}
269267 </Col>
270268 ))}
271− {}
269+ {!hasPlanets && <Text>No planets to update</Text>}
272270 </Col>
273271 <Row mt={3} justifyContent="end">
274272 <IndigoButton