Skip to content
Merged
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
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ var tsml_react_config = {
};
```

### Disable Add to Calendar button

You can disable the add to calendar button if needed.
```js
var tsml_react_config = {
calendar_enabled: false,
};
```

### Change the map style

Mapbox maps can be styled by picking a [classic Mapbox style](https://docs.mapbox.com/api/maps/styles/#classic-mapbox-styles) or creating a [custom map style](https://docs.mapbox.com/studio-manual/guides/map-styling/) and adding it to the `tsml_react_config` object.
Expand Down
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ type Lang = import('@code4recovery/spec').Language;

interface TSMLReactConfig {
cache: boolean;
calendar_enabled: boolean;
columns: string[];
conference_providers: Record<string, string>;
defaults: {
Expand Down
4 changes: 2 additions & 2 deletions public/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/Meeting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ export default function Meeting({
text={strings.share}
/>
)}
{meeting.start && meeting.isActive && (
{meeting.start && meeting.isActive && settings.calendar_enabled && (
<Button
icon="calendar"
onClick={() => formatIcs(meeting)}
Expand Down
1 change: 1 addition & 0 deletions src/helpers/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { en, es, fr, ja, nl, pt, sk, sv } from '../i18n';
// override these on your page with tsml_react_config
export const defaults: TSMLReactConfig = {
cache: false,
calendar_enabled: true,
columns: ['time', 'distance', 'name', 'location_group', 'address', 'region'],
conference_providers: {
'bluejeans.com': 'Bluejeans',
Expand Down