Skip to content

Commit

Permalink
fix: change request to https
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Oct 14, 2020
1 parent 4135f74 commit 48576a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/stories/src/stories_native/async-stories.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {

export const asyncStory = async () => {
const response = await fetch(
'http://dummy.restapiexample.com/api/v1/employee/1',
'https://dummy.restapiexample.com/api/v1/employee/1',
);
const { data } = await response.json();
return () => <h2>{`Hello, my name is ${data.employee_name}.`}</h2>;
Expand All @@ -19,7 +19,7 @@ asyncStory.description =

export async function asyncFunction() {
const response = await fetch(
'http://dummy.restapiexample.com/api/v1/employee/1',
'https://dummy.restapiexample.com/api/v1/employee/1',
);
const { data } = await response.json();
return () => <h2>{`Hello, my name is ${data.employee_name}.`}</h2>;
Expand All @@ -33,7 +33,7 @@ export const hooksStory = () => {
useEffect(() => {
const data = async () => {
const response = await fetch(
'http://dummy.restapiexample.com/api/v1/employee/1',
'https://dummy.restapiexample.com/api/v1/employee/1',
);
const employee = await response.json();
setName(employee.data.employee_name);
Expand Down Expand Up @@ -67,7 +67,7 @@ asyncDecorators.decorators = [
useEffect(() => {
const data = async () => {
const response = await fetch(
'http://dummy.restapiexample.com/api/v1/employee/1',
'https://dummy.restapiexample.com/api/v1/employee/1',
);
const { data } = await response.json();
setEmployee(data);
Expand Down

0 comments on commit 48576a6

Please sign in to comment.