Skip to content

Commit

Permalink
Fix landing chart
Browse files Browse the repository at this point in the history
  • Loading branch information
fatonramadani committed Sep 20, 2024
1 parent 7ab9e7e commit f992da5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/landing/FlowSection.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { useEffect } from 'react';

import {
Workflow,
Expand Down Expand Up @@ -618,9 +618,13 @@ const examples = [

export default function FlowSection() {
const { developerMode } = useDeveloperMode();
const [chart, setChart] = React.useState('short');
const [chart, setChart] = React.useState<'short' | 'long'>(undefined);
const { colorMode } = useColorMode();

useEffect(() => {
setChart('short');
}, []);

return (
<>
<Section
Expand Down

0 comments on commit f992da5

Please sign in to comment.