mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
chore: move calendarId to config
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user