diff --git a/docs/src/pages/community.tsx b/docs/src/pages/community.tsx index c173f4898..e39e31e48 100644 --- a/docs/src/pages/community.tsx +++ b/docs/src/pages/community.tsx @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -import React from 'react'; +import React, { useState } from 'react'; import styled from '@emotion/styled'; import { List } from 'antd'; import Layout from '@theme/Layout'; @@ -179,7 +179,19 @@ const StyledLink = styled('a')` } `; +const FinePrint = styled('div')` + font-size: 14px; + color: var(--ifm-secondary-text); +` + const Community = () => { + + const [showCalendar, setShowCalendar] = useState(false); // State to control calendar visibility + + const toggleCalendar = () => { + setShowCalendar(!showCalendar); // Toggle calendar visibility + }; + return ( { calendar-icon Subscribe to the Superset Community Calendar +
+ + calendar-icon + {showCalendar ? 'Hide Calendar' : 'Display Calendar*'} + + {!showCalendar && *Clicking on this link will load and send data from and to Google.} } /> - + {showCalendar && ( + + )}