Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #25 from armandabric/patch-1
Browse files Browse the repository at this point in the history
Compatibility with next v11.2
  • Loading branch information
lifeiscontent authored Jul 12, 2021
2 parents e4a5bdf + 4f61b50 commit b72975c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { action } from '@storybook/addon-actions';
import React from 'react';
import Router, { NextRouter } from 'next/router';
import { RouterContext } from 'next/dist/next-server/lib/router-context';
import {useGlobals} from '@storybook/client-api';
import { RouterContext } from 'next/dist/shared/lib/router-context';
import { useGlobals } from '@storybook/client-api';

export const withNextRouter = (story, context) => {
const [{locale}] = useGlobals();
Expand Down

0 comments on commit b72975c

Please sign in to comment.