Skip to content

Commit dbf4f62

Browse files
committed
test: πŸ’ use HTTPS for sample PDF file
1 parent 4d0a850 commit dbf4f62

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

β€Žsrc/__story__/pdf.story.tsxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {storiesOf} from '@storybook/react';
33
import Embed from '..';
44
import {Box} from './Box';
55

6-
const pdf = 'http://www.africau.edu/images/default/sample.pdf';
6+
const pdf = 'https://www.africau.edu/images/default/sample.pdf';
77

88
storiesOf('PDF', module)
99
.add('A pdf file', () => {

β€Žsrc/blocks/pdf/index.tsxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react';
22
import {BlockProps} from '../..';
33

4-
const Pdf: React.FC<BlockProps> = ({url, isDark, width, renderWrap}) => {
4+
const Pdf: React.FC<BlockProps> = ({url, renderWrap}) => {
55
return renderWrap(
66
<embed src={url} type="application/pdf" style={{width: '100%', minHeight: 600}} className="react-embed--pdf" />
77
);

0 commit comments

Comments
Β (0)