Skip to content

Commit

Permalink
rename svg to fix icon not showing bug
Browse files Browse the repository at this point in the history
rename svg to fix icon not showing bug
  • Loading branch information
hemarina authored Oct 5, 2023
2 parents 1879e31 + 5891d9c commit 6229fcc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions website/src/components/gallery/ShowcaseCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,18 +296,18 @@ function ShowcaseCard({ user }: { user: User }) {
const styles = useStyles();
const tags = user.tags;
const source = user.source;
const star = useBaseUrl("/img/sparkle.svg");
const fire = useBaseUrl("/img/fire.svg");
const star = useBaseUrl("/img/Sparkle.svg");
const fire = useBaseUrl("/img/Fire.svg");
let azdInitCommand =
"azd init -t " + source.replace("https://github.com/", "");
let headerLogo = useBaseUrl("/img/community.svg");
let headerLogo = useBaseUrl("/img/Community.svg");
let headerText = "COMMUNITY AUTHORED";

// Panel
const [isOpen, { setTrue: openPanel, setFalse: dismissPanel }] =
useBoolean(false);
if (tags.includes("msft")) {
headerLogo = useBaseUrl("/img/microsoft.svg");
headerLogo = useBaseUrl("/img/Microsoft.svg");
headerText = "MICROSOFT AUTHORED";
}
const onRenderNavigationContent: IRenderFunction<IPanelProps> =
Expand Down Expand Up @@ -544,7 +544,7 @@ function ShowcaseCard({ user }: { user: User }) {
navigator.clipboard.writeText(azdInitCommand);
}}
>
<img src={useBaseUrl("/img/copy.svg")} height={20} alt="Copy" />
<img src={useBaseUrl("/img/Copy.svg")} height={20} alt="Copy" />
</Button>
</PopoverTrigger>

Expand Down Expand Up @@ -684,7 +684,7 @@ function ShowcaseCardPanel({ user }: { user: User }) {

const templateURL = user.source.replace("https://github.com/", "");
const azdInitCommand = "azd init -t " + templateURL;
const copySVG = useBaseUrl("/img/copy.svg");
const copySVG = useBaseUrl("/img/Copy.svg");
const chevronSVG = useBaseUrl("/img/leftChevron.svg");
const pivotStyles: IPivotStyles = {
linkIsSelected: [
Expand Down

0 comments on commit 6229fcc

Please sign in to comment.