Skip to content

Commit

Permalink
Merge pull request #128 from RichmondCroft/118-add-gif-image-to-show-…
Browse files Browse the repository at this point in the history
…how-feature-works

118 add gif image to show how feature works
  • Loading branch information
t-divya authored Jan 12, 2023
2 parents 01ecf3a + 46254ea commit a76c369
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion popup/components/NavigationBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ type InputProps = {
marginLeft: string
}


const NavBarContainer = styled.div`
display: flex;
flex-direction: row;
Expand Down
Binary file added popup/images/dyslens-gif-feat.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions popup/pages/TextToSpeech/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
import { Slider, Switch } from "@mui/material";
import { ChangeEvent, useContext, useEffect, useState } from "react";
import styled from "styled-components";


import StoreContext from "~popup/storage/StoreContext";
import ComponentContainer from "~popup/components/ComponentContainer";
import DropDown from "~popup/components/DropDown";
import imageGif from "./../../images/dyslens-gif-feat.gif";


const StyledGifImage = styled.img`
width: 100%;
`;

export default function TextToSpeech() {
const { appData, setAppState } = useContext(StoreContext);
Expand Down Expand Up @@ -88,6 +95,9 @@ export default function TextToSpeech() {
}

return <div>
<ComponentContainer label="How to use">
<StyledGifImage data-testid="image-gif" src={imageGif} alt="dyslensGifFeature" />
</ComponentContainer>
<ComponentContainer label="Enabled" horizontal>
<Switch
checked={appData.textToSpeech.enabled}
Expand Down

0 comments on commit a76c369

Please sign in to comment.