Skip to content

Commit

Permalink
Reset lockfile (#619)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown authored Sep 5, 2023
1 parent 43f0b61 commit a5e259b
Show file tree
Hide file tree
Showing 5 changed files with 5,991 additions and 7,888 deletions.
5 changes: 5 additions & 0 deletions .changeset/stale-ravens-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystatic/next': patch
---

Remove unnecessary usage of internal `forceOptimisticNavigation` Next.js option
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Box } from '@keystar/ui/layout';
import { action } from '@keystar/ui-storybook';

import { Breadcrumbs, BreadcrumbsProps, Item } from '..';
import { ReactNode } from 'react';

export default {
title: 'Components/Breadcrumbs',
Expand Down Expand Up @@ -82,9 +83,9 @@ function renderBreadcrumbs(children: React.ReactNode) {
);
}

interface Render extends Function {
type Render = (() => ReactNode) & {
storyName?: string;
}
};

function render<T>(props: Partial<BreadcrumbsProps<T>> = {}): Render {
return renderBreadcrumbs(
Expand Down
6 changes: 3 additions & 3 deletions design-system/pkg/src/text-field/stories/TextArea.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState } from 'react';
import { ReactNode, useState } from 'react';
import { action, Parameters } from '@keystar/ui-storybook';
import { Grid } from '@keystar/ui/layout';

Expand Down Expand Up @@ -74,9 +74,9 @@ export const CustomWidth = render({
'Error messages inform the user when the input does not meet validation criteria.',
});

interface Render extends Function {
type Render = ((args: Parameters) => ReactNode) & {
storyName?: string;
}
};

function render(props = {}): Render {
return function renderWithArgs(args: Parameters) {
Expand Down
4 changes: 2 additions & 2 deletions packages/next/src/ui/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ export function makePage(config: Config<any, any>) {
href,
params,
push: async path => {
router.push(path, { forceOptimisticNavigation: true });
router.push(path);
},
replace: async path => {
router.replace(path, { forceOptimisticNavigation: true });
router.replace(path);
},
};
}, [href, router, pathname]);
Expand Down
Loading

2 comments on commit a5e259b

@vercel
Copy link

@vercel vercel bot commented on a5e259b Sep 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

keystar-ui – ./design-system/docs

keystar-ui-git-main-thinkmill-labs.vercel.app
voussoir.vercel.app
keystar-ui-thinkmill-labs.vercel.app
keystar-ui.vercel.app

@vercel
Copy link

@vercel vercel bot commented on a5e259b Sep 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

keystatic – ./dev-projects/next-app

keystatic-git-main-thinkmill-labs.vercel.app
keystatic-thinkmill-labs.vercel.app
keystatic.vercel.app

Please sign in to comment.