Skip to content

Commit

Permalink
Merge pull request #39 from hicsail/feat/feed-cleanup
Browse files Browse the repository at this point in the history
Feat/feed cleanup
  • Loading branch information
am5815 authored Jul 1, 2024
2 parents 6e2d3e7 + 9973e19 commit 6defc89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/components/CardModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const CardModal: React.FC<Props> = ({
const [audioLoading, setAudioLoading] = useState<boolean>(false);
const [hasFetchedAudios, setHasFetchedAudios] = useState(false);
const sentenceRefs = useRef<(HTMLIonTextElement | null)[]>([]);
const [displayVideo, setDisplayVideo] = useState<boolean>(true);
const [displayVideo, setDisplayVideo] = useState<boolean>(false);

const fetchAudio = async (index: number) => {
try {
Expand All @@ -68,7 +68,7 @@ const CardModal: React.FC<Props> = ({
const blob = await response.blob();
const url = URL.createObjectURL(blob);
const audio = new Audio(url);
audio.playbackRate = 1.25;
audio.playbackRate = 1.05;
return audio;
} catch (error) {
console.error("Error occurred while making request:", error);
Expand Down
12 changes: 6 additions & 6 deletions src/pages/Discover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ const Discover: React.FC = () => {
<div className="flex justify-center">
<IonCardHeader>
<IonCardTitle className="text-2xl font-bold font-sans mb-2 md:mb-1 md:text-4xl">
Explore what we have
Explore the articles we have
</IonCardTitle>
</IonCardHeader>
</div>
<IonCardContent>
{/* <IonCardContent>
<IonChip outline={false} color={"light"}>
<IonLabel>Articles</IonLabel>
</IonChip>
Expand All @@ -169,7 +169,7 @@ const Discover: React.FC = () => {
<IonChip outline={false} color={"light"}>
<IonLabel>Short Facts</IonLabel>
</IonChip>
</IonCardContent>
</IonCardContent> */}
</IonCard>
{/* <div className="h-6" /> */}
{/* <IonSearchbar
Expand All @@ -196,10 +196,10 @@ const Discover: React.FC = () => {
maxWidth: 1000,
}}
>
<IonText>Select your voice</IonText>
<IonButton size="small" color="warning" shape="round">
<IonText className="mx-2">Select your voice</IonText>
{/* <IonButton size="small" color="warning" shape="round">
<IonIcon icon={informationCircleOutline} />
</IonButton>
</IonButton> */}
<IonButton
size="small"
color="success"
Expand Down

0 comments on commit 6defc89

Please sign in to comment.