Skip to content

Conversation

@geoerika
Copy link
Contributor

@geoerika geoerika commented Dec 21, 2021

Changes:

  • replaced all comps from App, Controls, TopBar comps with either lumen-labs or normal html comps.

New look with lumen-labs comps:
Screen Shot 2021-12-22 at 9 44 55 AM

@netlify
Copy link

netlify bot commented Dec 21, 2021

✔️ 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/

Copy link
Contributor

@vxsl vxsl left a 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(() => [
Copy link
Contributor

@vxsl vxsl Dec 22, 2021

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'/>}
Copy link
Contributor

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

Copy link
Contributor Author

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'
Copy link
Contributor

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

Copy link
Contributor Author

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/
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@geoerika geoerika changed the title [WIP] Replace mui comps with lumen-labs comps [STALE] Replace mui comps with lumen-labs comps Jun 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants