chore: move calendarId to config

This commit is contained in:
vidvidvid
2021-11-25 09:01:13 +01:00
committed by Alec LaLonde
parent f79f6d0a90
commit 3cc964673e
2 changed files with 4 additions and 6 deletions

View File

@@ -1,7 +1,6 @@
import { CONFIG } from 'config';
import React, { useEffect, useState } from 'react';
const calId = 'nih59ktgafmm64ed4qk6ue8vv4@group.calendar.google.com';
export const Calendar: React.FC = () => {
const [isComponentMounted, setIsComponentMounted] = useState(false);
@@ -16,7 +15,7 @@ export const Calendar: React.FC = () => {
return (
<iframe
title="calendar"
src={`https://calendar.google.com/calendar/embed?height=600&wkst=1&bgcolor=%23ffffff&ctz=${timezone}&showPrint=0&mode=AGENDA&showTitle=0&showNav=1&showTabs=0&showPrint=0&showCalendars=0&src=${calId}&color=%23F09300`}
src={`https://calendar.google.com/calendar/embed?height=600&wkst=1&bgcolor=%23ffffff&ctz=${timezone}&showPrint=0&mode=AGENDA&showTitle=0&showNav=1&showTabs=0&showPrint=0&showCalendars=0&src=${CONFIG.calendarId}&color=%23F09300`}
style={{
// border: 'solid 1px #777',
marginTop: 20,

View File

@@ -28,7 +28,6 @@ export const CONFIG = {
process.env.NEXT_CERAMIC_URL ||
'https://ceramic-clay.3boxlabs.com' || // testnet
'https://d12-a-ceramic.3boxlabs.com',
actionsURL:
process.env.NEXT_ACTIONS_URL ||
'http://localhost:4000'
actionsURL: process.env.NEXT_ACTIONS_URL || 'http://localhost:4000',
calendarId: 'nih59ktgafmm64ed4qk6ue8vv4@group.calendar.google.com',
};