From d6aa76b14f070b9baf0fe7081b0f4c8e65fdef74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <39736248+andrefcdias@users.noreply.github.com> Date: Fri, 29 Apr 2022 18:04:25 +0200 Subject: [PATCH] fix: change asset URL --- .../react-card/src/stories/CardDefault.stories.tsx | 3 +-- .../react-card/src/stories/SampleCard.stories.tsx | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-components/react-card/src/stories/CardDefault.stories.tsx b/packages/react-components/react-card/src/stories/CardDefault.stories.tsx index 69a248b028b95..c4ff8ba0cd853 100644 --- a/packages/react-components/react-card/src/stories/CardDefault.stories.tsx +++ b/packages/react-components/react-card/src/stories/CardDefault.stories.tsx @@ -5,8 +5,7 @@ import { Body, Caption } from '@fluentui/react-text'; import { Button } from '@fluentui/react-button'; import { ArrowReplyRegular, ShareRegular } from '@fluentui/react-icons'; import { Card, CardFooter, CardHeader, CardPreview } from '../index'; // codesandbox-dependency: @fluentui/react-card ^9.0.0-beta - -const ASSET_URL = 'https://raw.githubusercontent.com/microsoft/fluentui/master/packages/react-card'; +import { ASSET_URL } from './SampleCard.stories'; const avatarElviaURL = ASSET_URL + '/assets/avatar_elvia.svg'; const wordLogoURL = ASSET_URL + '/assets/word_logo.svg'; diff --git a/packages/react-components/react-card/src/stories/SampleCard.stories.tsx b/packages/react-components/react-card/src/stories/SampleCard.stories.tsx index d702ba95fa6b5..2ab8224364a3c 100644 --- a/packages/react-components/react-card/src/stories/SampleCard.stories.tsx +++ b/packages/react-components/react-card/src/stories/SampleCard.stories.tsx @@ -6,7 +6,8 @@ import { Body, Caption } from '@fluentui/react-text'; import { Card, CardHeader, CardFooter } from '../index'; import type { CardProps } from '../index'; -const ASSET_URL = 'https://raw.githubusercontent.com/microsoft/fluentui/master/packages/react-card'; +export const ASSET_URL = + 'https://raw.githubusercontent.com/microsoft/fluentui/master/packages/react-components/react-card'; const powerpointLogoURL = ASSET_URL + '/assets/powerpoint_logo.svg';