Skip to content

Commit

Permalink
feat: change default view mode in GraphProvider from 'single' to 'dual'
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoMeireles55 committed Jan 20, 2025
1 parent 4d64cd9 commit 0e0cb46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/charts/contexts/GraphContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface GraphContextType {
const GraphContext = createContext<GraphContextType | undefined>(undefined);

export const GraphProvider: React.FC<{ children: React.ReactNode }> = ({ children }) => {
const [viewMode, setViewMode] = useState<ViewMode>('single');
const [viewMode, setViewMode] = useState<ViewMode>('dual');

const toggleView = () => {
setViewMode((current) => (current === 'single' ? 'dual' : 'single'));
Expand Down

0 comments on commit 0e0cb46

Please sign in to comment.