Skip to content

Commit b7d2f8a

Browse files
committed
mg starting rewind and ff buttons not done
1 parent 3d515f8 commit b7d2f8a

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

src/app/components/Tutorial.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ export default class Tutorial extends Component<TutorialProps, TutorialState> {
356356
type='button'
357357
onClick={() => startIntro()}
358358
>
359-
<HelpOutlineIcon /> Tutorial
359+
<HelpOutlineIcon sx={{pr: 1}}/> Tutorial
360360
</Button>
361361
</>
362362
);

src/app/containers/ButtonsContainer.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import LockIcon from '@mui/icons-material/Lock';
1717
import LockOpenIcon from '@mui/icons-material/LockOpen';
1818
import FileDownloadIcon from '@mui/icons-material/FileDownload';
1919
import FileUploadIcon from '@mui/icons-material/FileUpload';
20-
import HelpOutlineIcon from '@mui/icons-material/HelpOutline';
20+
2121

2222
// function exportHandler takes in a parameter snapshots which is typed as an array
2323
// the function does not return anything so the type is void
@@ -99,7 +99,7 @@ function ButtonsContainer(): JSX.Element {
9999
type='button'
100100
onClick={() => dispatch(toggleMode('paused'))}
101101
>
102-
{paused ? <LockIcon /> : <LockOpenIcon />}
102+
{paused ? <LockIcon sx={{pr: 1}}/> : <LockOpenIcon sx={{pr: 1}}/>}
103103
{paused ? 'Locked' : 'Unlocked'}
104104
</Button>
105105
<Button
@@ -108,11 +108,11 @@ function ButtonsContainer(): JSX.Element {
108108
type='button'
109109
onClick={() => exportHandler(snapshots)}
110110
>
111-
<FileDownloadIcon />
111+
<FileDownloadIcon sx={{pr: 1}}/>
112112
Download
113113
</Button>
114114
<Button variant='outlined' className='import-button' onClick={() => importHandler(dispatch)}>
115-
<FileUploadIcon />
115+
<FileUploadIcon sx={{pr: 1}}/>
116116
Upload
117117
</Button>
118118
{/* The component below renders a button for the tutorial walkthrough of Reactime */}

src/app/containers/TravelContainer.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import {
1212
} from '../actions/actions';
1313
import { useStoreContext } from '../store';
1414
import { TravelContainerProps } from '../FrontendTypes';
15+
import FastRewindIcon from '@mui/icons-material/FastRewind';
16+
import FastForwardIcon from '@mui/icons-material/FastForward';
1517

1618
/*
1719
This container renders the time-travel play button, seek bar, playback controls, and the playback speed dropdown, located towards the bottom of the application, above the locked, download, upload, and tutorial buttons
@@ -73,10 +75,10 @@ function TravelContainer(props: TravelContainerProps): JSX.Element {
7375
</button>
7476
<MainSlider snapshotsLength={snapshotsLength} />
7577
<button className='backward-button' onClick={() => dispatch(moveBackward())} type='button'>
76-
{'<'}
78+
<FastRewindIcon sx={{mr: 1, color: '#000'}}/>
7779
</button>
7880
<button className='forward-button' onClick={() => dispatch(moveForward())} type='button'>
79-
{'>'}
81+
<FastForwardIcon />
8082
</button>
8183
<Dropdown speeds={speeds} selectedSpeed={selectedSpeed} setSpeed={setSpeed} />
8284
</div>

src/app/styles/main.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@charset 'UTF-8';
2-
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
2+
@import url('https://fonts.googleapis.com/css2?family=Outfit:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
33

44
* {
5-
font-family: 'Roboto', sans-serif;
5+
font-family: 'Outfit', sans-serif;
66
font-size: 16px;
77
}
88

0 commit comments

Comments
 (0)