Skip to content

Commit

Permalink
Use icon import
Browse files Browse the repository at this point in the history
  • Loading branch information
binamkayastha committed Jul 11, 2024
1 parent fb14702 commit e029b99
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 20 deletions.
46 changes: 27 additions & 19 deletions nepalingo-web/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion nepalingo-web/src/components/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React, { useState } from 'react';
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faVolumeHigh } from '@fortawesome/free-solid-svg-icons';


const Card: React.FC<{
Word: string;
Expand Down Expand Up @@ -48,7 +50,7 @@ const Card: React.FC<{
<p className="absolute right-10 top-36 text-xs">{Pronunciation}</p>
{PronounciationUrl && (
<button onClick={handlePronunciation} className="absolute right-10 bottom-10">
<FontAwesomeIcon icon="fa-solid fa-volume-high" />
<FontAwesomeIcon icon={faVolumeHigh} />
</button>
)}
</div>
Expand Down

0 comments on commit e029b99

Please sign in to comment.