Created Iframe component

This commit is contained in:
Gutts-n 2024-01-17 21:54:22 -03:00
parent a93b13f448
commit e5b0a85e48
2 changed files with 3 additions and 3 deletions

View File

@ -9,6 +9,6 @@ export function Iframe({
url, style
}: IframeProps) {
return (
<iframe src={url} style={style ?? {}}></iframe>
<iframe src={url} style={style ?? { width: `100%`, height: `100%` }}></iframe>
);
}

View File

@ -25,7 +25,7 @@ type Story = StoryObj<IframeProps>;
export const Normal: Story = {
name: 'Iframe',
args: {
url: 'https://ssen-smart-meter.datopian.workers.dev',
style: {width: `100%`}
url: 'https://app.powerbi.com/view?r=eyJrIjoiYzBmN2Q2MzYtYzE3MS00ODkxLWE5OWMtZTQ2MjBlMDljMDk4IiwidCI6Ijk1M2IwZjgzLTFjZTYtNDVjMy04MmM5LTFkODQ3ZTM3MjMzOSIsImMiOjh9',
style: {width: `100%`, height: `100%`}
},
};