Skip to content
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

Bump version of spor-icon-elm in spor-elm #777

Merged
merged 4 commits into from
Aug 8, 2023

Conversation

ReyhanAZ
Copy link
Contributor

@ReyhanAZ ReyhanAZ commented Aug 8, 2023

Background

Need to bump the version of spor-icon-elm in travel-costumize, but this has a dependency on spor-elm which uses the old version.

Solution

Bumped to newer version. Changed the files that needed to be altered.

@changeset-bot
Copy link

changeset-bot bot commented Aug 8, 2023

⚠️ No Changeset found

Latest commit: 9d9de74

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

@FluidSense FluidSense left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 👏 Tror vi kan kutte ned en del kode her før vi releaser det også! 😄

Comment on lines 278 to 288
Critical ->
feedbackIcon Icon.Error

Major ->
warningFill18x18
Major ->
feedbackIcon Icon.Warning

Minor ->
warningFill18x18
Minor ->
feedbackIcon Icon.Warning

Info ->
Svg.fromUnstyled <| Feedback.informationFill18X18 []
Info ->
feedbackIcon Icon.Information
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Her kan vi fjerne feedbackIcon fra alle casene og heller sette foran case-statementen. E.g.

feedbackIcon <| case deviationLevel of
   ...

Comment on lines 182 to 189
( LocalTrain, Sm ) ->
Transportation.trainFill18X18 []
trainIcon Icon.Size18

( LocalTrain, Md ) ->
Transportation.trainFill24X24 []
trainIcon Icon.Size24

( LocalTrain, Lg ) ->
Transportation.trainFill30X30 []
trainIcon Icon.Size30
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hva med å lage en sizeToIconSize i let...in, så kan man i stedet si

( LocalTrain, size_ ) ->
   trainIcon <| sizeToIconSize size_
   
( RegionTrain, size_ ) ->
  trainIcon <| sizeToIconSize size_

osv..? 😄

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hvis et case også har unikt ikon for sin variant kan egentlig ikonfunksjone bare ligge i den casen også!

Copy link
Contributor

@FluidSense FluidSense left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ReyhanAZ ReyhanAZ merged commit 8aeaf5a into main Aug 8, 2023
1 check passed
@ReyhanAZ ReyhanAZ deleted the Use-new-version-of-spor-icon branch August 8, 2023 13:26
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.

2 participants