on master help sign in
inviteconverter: always show button, add empty state
b8674faHunter Miller
src/components/L2/InviteConverter.tsx+4−6
@@ -177,10 +177,6 @@ export const InviteConverter = ({ points }: InviteConverterProps) => {
177 return (sum += star.children.length);
177 return (sum += star.children.length);
178 }, 0) > 0;
178 }, 0) > 0;
179
179
180− if (!hasPlanets) {
181− return null;
182− }
183−
184 if (generatingStatus !== 'initial') {
180 if (generatingStatus !== 'initial') {
185 return (
181 return (
186 <CreatingInvitesModal
182 <CreatingInvitesModal
@@ -235,7 +231,9 @@ export const InviteConverter = ({ points }: InviteConverterProps) => {
235 mt={3}
231 mt={3}
236 p={3}
232 p={3}
237 borderRadius={2}
233 borderRadius={2}
238− overflowY="auto">
234+ overflowY="auto"
235+ alignItems={hasPlanets ? '' : 'center'}
236+ justifyContent={hasPlanets ? '' : 'center'}>
239 {Object.entries(starMap).map(([patp, { children }]) => (
237 {Object.entries(starMap).map(([patp, { children }]) => (
240 <Col mb={4}>
238 <Col mb={4}>
241 <Row>
239 <Row>
@@ -268,7 +266,7 @@ export const InviteConverter = ({ points }: InviteConverterProps) => {
268 ))}
266 ))}
269 </Col>
267 </Col>
270 ))}
268 ))}
271− {}
269+ {!hasPlanets && <Text>No planets to update</Text>}
272 </Col>
270 </Col>
273 <Row mt={3} justifyContent="end">
271 <Row mt={3} justifyContent="end">
274 <IndigoButton
272 <IndigoButton