-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/autopolygon leasehold icon #234
Conversation
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.
These should also be added to Icons.stories.tsx
.
const LeaseholdAutoPolygonIcon: React.FC<Props> = ({ size = 'large', fill = DEFAULT_ICON_COLOR, ...props }) => ( | ||
<IconWrapper size={size}> | ||
<LeaseholdAutoPolygon fill={fill} {...props} /> | ||
</IconWrapper> | ||
); | ||
export { LeaseholdAutoPolygonIcon, autoPolygonUrl as leaseholdAutoPolygonUrl }; |
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 you can just rename AutoPolygonIcon
rather than create a duplicate with a different name.
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.
You'll need to add it to the stories file too so it shows up in Stroybook, which I'm happy to help with if you need 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.
I'd prefer not to change the name, as it would introduce a breaking change to the code base. This slow API migration means we can remove the old AutoPolygonIcon
component once we're happy.
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.
So that icon isn't used anywhere else (only in maps), but that's fine if we want to approach it like that, can you add a note to remove the duplicate though as we tend to forget about these things.
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.
The app code can be changed to use the new name when updating the wombat version in Maps, so it shouldn’t be too risky in any case
This svg is 25 24 which is a little odd as mostly they are 24 24 which keeps them a square |
I've added two new icons; one for
LeaseholdAutoPolygonIcon
, one forFreeholdAutoPolygonIcon
. This leaves the currentAutoPolygonIcon
icon alone.It should be noted that
LeaseholdAutoPolygonIcon
is the same asAutoPolygonIcon
- this will allow us to migrate away fromAutoPolygonIcon
while maintaining backwards compatibility.