-
Notifications
You must be signed in to change notification settings - Fork 1
[STALE] Replace mui comps with lumen-labs comps #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
✔️ Deploy Preview for flood-maps ready! 🔨 Explore the source changes: 88eee05 🔍 Inspect the deploy log: https://app.netlify.com/sites/flood-maps/deploys/61c357b62fc45000082dad90 😎 Browse the preview: https://deploy-preview-10--flood-maps.netlify.app/ |
vxsl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
src/controls.js
Outdated
| const [showFlodd, setShowFlood] = useState(true) | ||
| const [showFlood, setShowFlood] = useState(true) | ||
|
|
||
| const locationData = useMemo(() => [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I think a regular variable assignment (even outside of the component) would do fine here, because it's derived from a constant. Additionally, there should be a lint error that says something like "
useMemo does nothing when used with an empty dependency array".
| data={locationData} | ||
| size='lg' | ||
| setSelectedOption={{ title: location }} | ||
| endIcon={<Icons.ArrowDown size='md'/>} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see EQWorks/lumen-labs#71 for removing this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, will wait for a release with this
| setShowBuildings(!showBuildings) | ||
| }} | ||
| label='Show Buildings' | ||
| color='warning' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
design team might disagree with this, not exactly a huge issue though lol :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I had no choice but to use the 'warning' choice to have a different colour, the only colour available to match the yellow I used on the map for buildings. I don't think using this in a switch would imply it also carries the semantic message with it. The semantics apply for alerts or buttons.
.netlify/.npmrc
Outdated
| @@ -0,0 +1,3 @@ | |||
| @eqworks:registry=https://npm.pkg.github.com/ | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pretty sure we don't need this file because we're not accessing any private scoped packages (lumen-labs is public). Could be wrong though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, netlify deployment failed without this. I will try again. But you are right, it should have worked without it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Funny thing, now it worked without, hmmm....maybe I didn't read the error correctly in netlify.
Changes:
New look with lumen-labs comps:
