Skip to content

Commit

Permalink
hotfix - consolidation/subdivision button display (#4042)
Browse files Browse the repository at this point in the history
* psp-8441 correct missing subdivision icon.

* bump hotfix version.

* snapshot updates.
  • Loading branch information
devinleighsmith authored May 24, 2024
1 parent a94c3a6 commit 866d310
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 33 deletions.
6 changes: 3 additions & 3 deletions source/backend/api/Pims.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<UserSecretsId>0ef6255f-9ea0-49ec-8c65-c172304b4926</UserSecretsId>
<Version>5.2.3-79.18</Version>
<Version>5.2.3-79.18</Version>
<AssemblyVersion>5.2.3.79</AssemblyVersion>
<Version>5.2.4-79.18</Version>
<Version>5.2.4-79.18</Version>
<AssemblyVersion>5.2.4.79</AssemblyVersion>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<ProjectGuid>16BC0468-78F6-4C91-87DA-7403C919E646</ProjectGuid>
<TargetFramework>net8.0</TargetFramework>
Expand Down
2 changes: 1 addition & 1 deletion source/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "frontend",
"version": "5.2.3-79.18",
"version": "5.2.4-79.18",
"private": true,
"dependencies": {
"@bcgov/bc-sans": "1.0.1",
Expand Down
5 changes: 0 additions & 5 deletions source/frontend/src/assets/images/edit-map-marker.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import styled from 'styled-components';

import EditMapMarkerIcon from '@/assets/images/edit-map-marker.svg?react';

export const EditPropertiesIcon: React.FC = () => {
return <EditMapMarkerButton width="2.4rem" height="2.4rem" />;
};

const EditMapMarkerButton = styled(EditMapMarkerIcon)`
fill: ${props => props.theme.css.primaryColor};
`;
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Col, Row } from 'react-bootstrap';
import { FaCaretRight } from 'react-icons/fa';
import styled from 'styled-components';

import EditMapMarker from '@/assets/images/edit-map-marker.svg?react';
import { EditPropertiesIcon } from '@/components/common/buttons/EditPropertiesButton';
import EditButton from '@/components/common/EditButton';
import TooltipIcon from '@/components/common/TooltipIcon';
import { Claims, Roles } from '@/constants/index';
Expand Down Expand Up @@ -57,7 +57,7 @@ const AcquisitionMenu: React.FunctionComponent<
{hasClaim(Claims.ACQUISITION_EDIT) && canEditDetails() && (
<EditButton
title="Change properties"
icon={<EditMapMarker width="2.4rem" height="2.4rem" />}
icon={<EditPropertiesIcon />}
onClick={props.onShowPropertySelector}
/>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,22 +110,15 @@ exports[`AcquisitionMenu component > matches snapshot 1`] = `
type="button"
>
<svg
class=""
data-name="Layer 2"
height="2.4rem"
id="Layer_2"
viewBox="0 0 56.95 85.87"
width="2.4rem"
xmlns="http://www.w3.org/2000/svg"
>
<defs>
<style>
.cls-1 {
fill: #036;
}
</style>
</defs>
<defs />
<g
data-name="PDF preview"
id="PDF_preview"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Col, Row } from 'react-bootstrap';
import { FaCaretRight } from 'react-icons/fa';
import styled from 'styled-components';

import EditMapMarker from '@/assets/images/edit-map-marker.svg?react';
import { EditPropertiesIcon } from '@/components/common/buttons/EditPropertiesButton';
import EditButton from '@/components/common/EditButton';
import TooltipIcon from '@/components/common/TooltipIcon';
import { Claims, Roles } from '@/constants/index';
Expand Down Expand Up @@ -56,7 +56,7 @@ const DispositionMenu: React.FunctionComponent<
{hasClaim(Claims.DISPOSITION_EDIT) && canEditDetails() && (
<EditButton
title="Change properties"
icon={<EditMapMarker width="2.4rem" height="2.4rem" />}
icon={<EditPropertiesIcon />}
onClick={props.onShowPropertySelector}
/>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Col, Row } from 'react-bootstrap';
import { FaCaretRight } from 'react-icons/fa';
import styled from 'styled-components';

import EditMapMarker from '@/assets/images/edit-map-marker.svg?react';
import { EditPropertiesIcon } from '@/components/common/buttons/EditPropertiesButton';
import { EditButton } from '@/components/common/EditButton';
import { Claims } from '@/constants/index';
import { useKeycloakWrapper } from '@/hooks/useKeycloakWrapper';
Expand Down Expand Up @@ -45,7 +45,7 @@ const ResearchMenu: React.FunctionComponent<
{hasClaim(Claims.RESEARCH_EDIT) && (
<EditButton
title="Change properties"
icon={<EditMapMarker width="2.4rem" height="2.4rem" />}
icon={<EditPropertiesIcon />}
onClick={() => {
props.onEdit();
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,22 +110,15 @@ exports[`ResearchMenu component > renders as expected when provided no research
type="button"
>
<svg
class=""
data-name="Layer 2"
height="2.4rem"
id="Layer_2"
viewBox="0 0 56.95 85.87"
width="2.4rem"
xmlns="http://www.w3.org/2000/svg"
>
<defs>
<style>
.cls-1 {
fill: #036;
}
</style>
</defs>
<defs />
<g
data-name="PDF preview"
id="PDF_preview"
Expand Down

0 comments on commit 866d310

Please sign in to comment.