Skip to content

Commit

Permalink
[Landing] Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
brunolemos committed Jun 1, 2020
1 parent 8c99d0f commit 363f3c3
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 30 deletions.
6 changes: 5 additions & 1 deletion landing/src/components/common/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ export function Select<T extends string>(props: SelectProps<T>) {

const childrenArr = React.Children.toArray(children)
const selectedIndex = childrenArr.findIndex(
child => child && child.props.selected === true,
child =>
typeof child === 'object' &&
'props' in child &&
child.props &&
child.props.selected === true,
)

return (
Expand Down
58 changes: 29 additions & 29 deletions landing/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1053,10 +1053,10 @@
lodash "^4.17.13"
to-fast-properties "^2.0.0"

"@devhub/core@npm:@brunolemos/devhub-core@0.100.2-2":
version "0.100.2-2"
resolved "https://registry.npmjs.org/@brunolemos/devhub-core/-/devhub-core-0.100.2-2.tgz#e559846d449e96df244a604b84e73d02abd8f351"
integrity sha512-DUFsJb67u7iQFU40XrU3hGWOpALagt3PlZP8wc31YdIwXvas/zP+QXw5GjItJcQNPRiGO5AkTpdhrxl/HXL9vQ==
"@devhub/core@npm:@brunolemos/devhub-core@0.101.0":
version "0.101.0"
resolved "https://registry.npmjs.org/@brunolemos/devhub-core/-/devhub-core-0.101.0.tgz#0dd803393e1a421593c0076ca3dcd5376470bfa2"
integrity sha512-6MtyZ9fENxHaaeGZBbrFo5lKbVJ01IB171wIYtTUMU8ltL06gF60QTBxVOvNN2xYkLZjEzMuBXqjTk13WOmFGA==
dependencies:
"@octokit/rest" "16.43.1"
axios "0.19.0"
Expand Down Expand Up @@ -1211,10 +1211,10 @@
resolved "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.149.tgz#1342d63d948c6062838fbf961012f74d4e638440"
integrity sha512-ijGqzZt/b7BfzcK9vTrS6MFljQRPn5BFWOx8oE0GYxribu6uV+aA9zZuXI1zc/etK9E8nrgdoF2+LgUw7+9tJQ==

"@types/node@12.7.11":
version "12.7.11"
resolved "https://registry.npmjs.org/@types/node/-/node-12.7.11.tgz#be879b52031cfb5d295b047f5462d8ef1a716446"
integrity sha512-Otxmr2rrZLKRYIybtdG/sgeO+tHY20GxeDjcGmUnmmlCWyEnv2a2x1ZXBo3BTec4OiTXMQCiazB8NMBf0iRlFw==
"@types/node@14.0.5":
version "14.0.5"
resolved "https://registry.npmjs.org/@types/node/-/node-14.0.5.tgz#3d03acd3b3414cf67faf999aed11682ed121f22b"
integrity sha512-90hiq6/VqtQgX8Sp0EzeIsv3r+ellbGj4URKj5j30tLlZvRUpnAe9YbYnjl3pJM93GyXU0tghHhvXHq+5rnCKA==

"@types/node@>= 8":
version "13.7.4"
Expand All @@ -1236,10 +1236,10 @@
resolved "https://registry.npmjs.org/@types/qs/-/qs-6.9.0.tgz#2a5fa918786d07d3725726f7f650527e1cfeaffd"
integrity sha512-c4zji5CjWv1tJxIZkz1oUtGcdOlsH3aza28Nqmm+uNDWBRHoMsjooBEN4czZp1V3iXPihE/VRUOBqg+4Xq0W4g==

"@types/[email protected].4":
version "16.9.4"
resolved "https://registry.npmjs.org/@types/react-dom/-/react-dom-16.9.4.tgz#0b58df09a60961dcb77f62d4f1832427513420df"
integrity sha512-fya9xteU/n90tda0s+FtN5Ym4tbgxpq/hb/Af24dvs6uYnYn+fspaxw5USlw0R8apDNwxsqumdRoCoKitckQqw==
"@types/[email protected].8":
version "16.9.8"
resolved "https://registry.npmjs.org/@types/react-dom/-/react-dom-16.9.8.tgz#fe4c1e11dfc67155733dfa6aa65108b4971cb423"
integrity sha512-ykkPQ+5nFknnlU6lDd947WbQ6TE3NNzbQAkInC2EKY1qeYdTKp7onFusmYZb+ityzx2YviqT6BXSu+LyWWJwcA==
dependencies:
"@types/react" "*"

Expand All @@ -1259,10 +1259,10 @@
"@types/prop-types" "*"
csstype "^2.2.0"

"@types/[email protected].13":
version "16.9.13"
resolved "https://registry.npmjs.org/@types/react/-/react-16.9.13.tgz#b3ea5dd443f4a680599e2abba8cc66f5e1ce0059"
integrity sha512-LikzRslbiufJYHyzbHSW0GrAiff8QYLMBFeZmSxzCYGXKxi8m/1PHX+rsVOwhr7mJNq+VIu2Dhf7U6mjFERK6w==
"@types/[email protected].35":
version "16.9.35"
resolved "https://registry.npmjs.org/@types/react/-/react-16.9.35.tgz#a0830d172e8aadd9bd41709ba2281a3124bbd368"
integrity sha512-q0n0SsWcGc8nDqH2GJfWQWUOmZSJhXV64CjVN5SvcNti3TdEaA3AH0D8DwNmMdzjMAC/78tB8nAZIlV8yTz+zQ==
dependencies:
"@types/prop-types" "*"
csstype "^2.2.0"
Expand Down Expand Up @@ -5677,15 +5677,15 @@ rc@^1.2.7:
minimist "^1.2.0"
strip-json-comments "~2.0.1"

react-dom@16.12.0:
version "16.12.0"
resolved "https://registry.npmjs.org/react-dom/-/react-dom-16.12.0.tgz#0da4b714b8d13c2038c9396b54a92baea633fe11"
integrity sha512-LMxFfAGrcS3kETtQaCkTKjMiifahaMySFDn71fZUNpPHZQEzmk/GiAeIT8JSOrHB23fnuCOMruL2a8NYlw+8Gw==
react-dom@16.13.1:
version "16.13.1"
resolved "https://registry.npmjs.org/react-dom/-/react-dom-16.13.1.tgz#c1bd37331a0486c078ee54c4740720993b2e0e7f"
integrity sha512-81PIMmVLnCNLO/fFOQxdQkvEq/+Hfpv24XNJfpyZhTRfO0QcmQIF/PgCa1zCOj2w1hrn12MFLyaJ/G0+Mxtfag==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"
prop-types "^15.6.2"
scheduler "^0.18.0"
scheduler "^0.19.1"

[email protected]:
version "16.13.1"
Expand All @@ -5709,10 +5709,10 @@ [email protected]:
dependencies:
prop-types "15.7.2"

react@16.12.0:
version "16.12.0"
resolved "https://registry.npmjs.org/react/-/react-16.12.0.tgz#0c0a9c6a142429e3614834d5a778e18aa78a0b83"
integrity sha512-fglqy3k5E+81pA8s+7K0/T3DBCF0ZDOher1elBFzF7O6arXJgzyu/FW+COxFvAWXJoJN9KIZbT2LXlukwphYTA==
react@16.13.1:
version "16.13.1"
resolved "https://registry.npmjs.org/react/-/react-16.13.1.tgz#2e818822f1a9743122c063d6410d85c1e3afe48e"
integrity sha512-YMZQQq32xHLX0bz5Mnibv1/LHb3Sqzngu7xstSM+vrkE5Kzr9xE0yMByK5kMoTK30YVJE61WfbxIFFvfeDKT1w==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"
Expand Down Expand Up @@ -6037,10 +6037,10 @@ sax@^1.2.4, sax@~1.2.4:
resolved "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==

scheduler@^0.18.0:
version "0.18.0"
resolved "https://registry.npmjs.org/scheduler/-/scheduler-0.18.0.tgz#5901ad6659bc1d8f3fdaf36eb7a67b0d6746b1c4"
integrity sha512-agTSHR1Nbfi6ulI0kYNK0203joW2Y5W4po4l+v03tOoiJKpTBbxpNhWDvqc/4IcOw+KLmSiQLTasZ4cab2/UWQ==
scheduler@^0.19.1:
version "0.19.1"
resolved "https://registry.npmjs.org/scheduler/-/scheduler-0.19.1.tgz#4f3e2ed2c1a7d65681f4c854fa8c5a1ccb40f196"
integrity sha512-n/zwRWRYSUj0/3g/otKDRPMh6qv2SYMWNq85IEa8iZyAv8od9zDYpGSnpBEjNgcMNq6Scbu5KfIPxNF72R/2EA==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"
Expand Down

0 comments on commit 363f3c3

Please sign in to comment.