Skip to content

Commit

Permalink
rename constant PTP_URL to PAIKKATIETOPALVELU_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
robertrytovuori committed Jun 5, 2024
1 parent cf74544 commit 692f51e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/util/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const MAP_COLORS = ['#0078C0', '#FF9800', '#1976D2', '#D32F2F', '#E040FB'
* @readonly
* @const {string}
*/
export const PTP_URL = 'https://ptp.hel.fi';
export const PAIKKATIETOPALVELU_URL = 'https://ptp.hel.fi';

/**
* Delete modal button text
Expand Down
6 changes: 3 additions & 3 deletions src/util/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import isEmpty from "lodash/isEmpty";
import isNumber from "lodash/isNumber";
import { toastr } from "react-redux-toastr";
import ToastrIcons from "components/toastr/ToastrIcons";
import { PTP_URL } from "util/constants";
import { PAIKKATIETOPALVELU_URL } from "util/constants";
import { Breakpoints } from "foundation/enums";
import type { ApiResponse, Attributes, Methods } from "types";
import type { UsersPermissions } from "usersPermissions/types";
Expand Down Expand Up @@ -637,14 +637,14 @@ export const findFromOcdString = (ocd: string, key: string): string | null | und
* @param {string} reportId
* @returns {string}
*/
export const createPTPPlanReportUrl = (reportId: string): string => `${PTP_URL}/DataForms/planreport/?id=${reportId}`;
export const createPTPPlanReportUrl = (reportId: string): string => `${PAIKKATIETOPALVELU_URL}/DataForms/planreport/?id=${reportId}`;

/**
* Create url to ptp.hel.fi
* @param {string} plotDivisionId
* @returns {string}
*/
export const createPTPPlotDivisionUrl = (plotDivisionId: string): string => `${PTP_URL}/DataHandlers/Tonttijaot/?q=${plotDivisionId}`;
export const createPTPPlotDivisionUrl = (plotDivisionId: string): string => `${PAIKKATIETOPALVELU_URL}/DataHandlers/Tonttijaot/?q=${plotDivisionId}`;

/**
* Get count of results from api response
Expand Down

0 comments on commit 692f51e

Please sign in to comment.