File tree Expand file tree Collapse file tree 6 files changed +24
-1
lines changed
views/Calendar/components Expand file tree Collapse file tree 6 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,8 @@ export const App = () => {
7676 capture_unhandled_rejections : true ,
7777 capture_console_errors : true ,
7878 } ,
79+ opt_in_site_apps : true ,
80+ person_profiles : "always" ,
7981 } }
8082 >
8183 { wrappedChildren }
Original file line number Diff line number Diff line change 1+ export const PH_ID_BETA_BUTTON = "early-access-button" ; // this needs to match the id of the button in the PostHog dashboard
Original file line number Diff line number Diff line change @@ -41,4 +41,4 @@ export const GlobalStyle = createGlobalStyle`
4141 background-color: ${ theme . color . panel . scrollbarActive } ;
4242 }
4343 }
44- ` ;
44+ `;
Original file line number Diff line number Diff line change 1+ import styled from "styled-components" ;
2+ import { Flask } from "@phosphor-icons/react" ;
3+ import { iconStyles } from "./styled" ;
4+
5+ export const FlaskIcon = styled ( Flask ) `
6+ ${ iconStyles }
7+ ` ;
Original file line number Diff line number Diff line change 11import React from "react" ;
2+ import { PH_ID_BETA_BUTTON } from "@web/common/constants/posthog.constants" ;
23import { theme } from "@web/common/styles/theme" ;
34import { getMetaKey } from "@web/common/utils/shortcut/shortcut.util" ;
45import { CalendarIcon } from "@web/components/Icons/Calendar" ;
56import { CommandIcon } from "@web/components/Icons/Command" ;
7+ import { FlaskIcon } from "@web/components/Icons/Flask" ;
68import { SpinnerIcon } from "@web/components/Icons/Spinner" ;
79import { TodoIcon } from "@web/components/Icons/Todo" ;
810import { Text } from "@web/components/Text" ;
@@ -82,6 +84,12 @@ export const SidebarIconRow = () => {
8284 }
8385 />
8486 </ TooltipWrapper >
87+ < TooltipWrapper description = "Early Access" >
88+ < FlaskIcon
89+ id = { PH_ID_BETA_BUTTON }
90+ color = { theme . color . text . darkPlaceholder }
91+ />
92+ </ TooltipWrapper >
8593 { gCalImport . importing ? (
8694 < TooltipWrapper description = "Importing your calendar events in the background" >
8795 < SpinnerIcon disabled />
Original file line number Diff line number Diff line change 1+ import { useFeatureFlagEnabled } from "posthog-js/react" ;
12import React from "react" ;
23import { StyledTodayButton } from "./styled" ;
34
45export const TodayButton = ( ) => {
6+ const isPlannerEnabled = useFeatureFlagEnabled ( "experiment_planner" ) ;
7+
8+ isPlannerEnabled && console . log ( "planner enabled" ) ;
9+
510 return < StyledTodayButton title = "Today" > Today</ StyledTodayButton > ;
611} ;
You can’t perform that action at this time.
0 commit comments