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

Slide Interaction - Calendar Instant Booking #129

Merged
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ All notable changes to this project will be documented in this file.
- Winston logging to Pino logging
- Set infrastructure node version to 20.
- Fixed base path to /client.
- [#118](https://github.com/os2display/display-client/pull/118)
- Added api url to localstorage.

## [2.0.4] - 2024-08-14

Expand Down Expand Up @@ -44,7 +46,8 @@ All notable changes to this project will be documented in this file.

- [#119](https://github.com/os2display/display-client/pull/119)
- Changed to v2 routing.
- Limited the number of API calls by comparing relationsChecksum.
- [#117](https://github.com/os2display/display-client/pull/117)
- Limited the number of API calls by comparing relationsChecksum.

## [1.3.5] - 2023-09-14

Expand Down
3 changes: 3 additions & 0 deletions src/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,9 @@ function App() {
const tenantKey = localStorage.getItem(localStorageKeys.TENANT_KEY);
const tenantId = localStorage.getItem(localStorageKeys.TENANT_ID);

// Make api endpoint available through localstorage.
localStorage.setItem(localStorageKeys.API_URL, config.apiEndpoint);

if (token && tenantKey && tenantId) {
// Get fallback image.
fetch(`${config.apiEndpoint}/v2/tenants/${tenantId}`, {
Expand Down
1 change: 1 addition & 0 deletions src/local-storage-keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ const localStorageKeys = {
TENANT_ID: 'tenantId',
REFRESH_TOKEN: 'refreshToken',
FALLBACK_IMAGE: 'fallbackImage',
API_URL: 'apiUrl',
};
export default localStorageKeys;
Loading