From 19170d94c8e34c199ba37f8ffa7ec9f1cd4ff31d Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Tue, 16 Apr 2024 17:25:42 -0600 Subject: [PATCH] chore(asf): disable calendar display by default, click to show (#28048) --- docs/src/pages/community.tsx | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/docs/src/pages/community.tsx b/docs/src/pages/community.tsx index c173f4898b..e39e31e486 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 && ( + + )}