Skip to content

Commit

Permalink
refactor: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Dec 2, 2023
1 parent 982b7e5 commit e3dfcbd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/react/stories/set-data.stories.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import { Story } from './util/story'

export default { title: 'setData' }
Expand Down Expand Up @@ -33,7 +34,8 @@ export const preferMedia = {
url: 'https://youtube.com',
sizes: ['normal'],
media: ['iframe', 'video', 'audio'],
setData: data => ({
fetchData: false,
setData: () => ({
iframe: null,
audio: {
url: 'https://invalidurl.lol',
Expand All @@ -59,7 +61,8 @@ export const preferMedia = {
url: 'https://example.com',
sizes: ['normal'],
media: ['iframe', 'video', 'audio'],
setData: data => ({
fetchData: false,
setData: () => ({
iframe: {
html: "<marquee>welcome to microlink.io! You're the visitor number 12242! CONGRATS!! You win an API key, just send 1$ to hello@microlink.io for receiving it into your inbox</marquee>",
scripts: []
Expand Down

0 comments on commit e3dfcbd

Please sign in to comment.