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 #2

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@ All notable changes to this project will be documented in this file.
- [#120](https://github.com/os2display/display-client/pull/120)
- Added cache busting.

- [#118](https://github.com/os2display/display-client/pull/118)
- Added api url to localstorage.
- Removed React strict mode.

## [2.0.0] - 2024-04-09

- [#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.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,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
6 changes: 1 addition & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,4 @@ import App from './app';
const container = document.getElementById('root');
const root = createRoot(container);

root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);
root.render(<App />);
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;