Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nextjs-starter-template
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Moorthy G
nextjs-starter-template
Commits
475f9464
Commit
475f9464
authored
May 28, 2024
by
Moorthy G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(storybook): remove next/image mocks
parent
c2d7eafc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
preview.ts
.storybook/preview.ts
+0
-9
No files found.
.storybook/preview.ts
View file @
475f9464
import
'@/styles/globals.css'
;
import
'@/styles/globals.css'
;
import
type
{
Preview
}
from
'@storybook/react'
;
import
type
{
Preview
}
from
'@storybook/react'
;
import
*
as
NextImage
from
'next/image'
;
import
{
ImageProps
}
from
'next/image'
;
const
preview
:
Preview
=
{
const
preview
:
Preview
=
{
parameters
:
{
parameters
:
{
...
@@ -16,10 +14,3 @@ const preview: Preview = {
...
@@ -16,10 +14,3 @@ const preview: Preview = {
};
};
export
default
preview
;
export
default
preview
;
Object
.
defineProperty
(
NextImage
,
'getImageProps'
,
{
configurable
:
true
,
value
:
(
props
:
ImageProps
)
=>
{
return
{
props
:
{
...
props
,
srcSet
:
props
.
src
}
};
}
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment