Skip to content

Commit 5cd0ef9

Browse files
committed
updated using lucide-react icons
1 parent d08c871 commit 5cd0ef9

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

src/app/components/Buttons/Tutorial.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import HelpOutlineIcon from '@mui/icons-material/HelpOutline';
1111
const { Steps } = require('intro.js-react'); //Must be required in. This enables compatibility with TS. If imported in, throws ts error of not rendering steps as a class component correctly. The package 'intro.js-react' is small React wrapper around Intro.js. The wrapper provides support for both steps and hints. https://introjs.com/docs/
1212
import { setCurrentTabInApp, tutorialSaveSeriesToggle } from '../../slices/mainSlice';
1313
import { useDispatch, useSelector } from 'react-redux';
14+
import { HelpCircle } from 'lucide-react';
15+
1416
/*
1517
This is the tutorial displayed when the "How to use" button is clicked
1618
This needs to be a class component to be compatible with updateStepElement from intro.js
@@ -360,7 +362,7 @@ export default class Tutorial extends Component<TutorialProps, TutorialState> {
360362
ref={(steps) => (this.steps = steps)} // ref allows access to intro.js API
361363
/>
362364
<Button className='howToUse-button' type='button' onClick={() => startIntro()}>
363-
<HelpOutlineIcon className='button-icon' sx={{ pr: 1 }} /> Tutorial
365+
<HelpCircle className='button-icon' size={18} /> Tutorial
364366
</Button>
365367
</>
366368
);

src/app/containers/ButtonsContainer.tsx

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@ import { Button } from '@mui/material';
55
//importing necesary material UI components for dialogue popup
66
import { Dialog, DialogTitle, DialogContent, DialogActions } from '@mui/material';
77
import Tutorial from '../components/Buttons/Tutorial';
8-
import LockIcon from '@mui/icons-material/Lock';
9-
import LockOpenIcon from '@mui/icons-material/LockOpen';
10-
import FileDownloadIcon from '@mui/icons-material/FileDownload';
11-
import FileUploadIcon from '@mui/icons-material/FileUpload';
128
import { toggleMode, importSnapshots, startReconnect } from '../slices/mainSlice';
139
import { useDispatch, useSelector } from 'react-redux';
1410
import StatusDot from '../components/Buttons/StatusDot';
15-
import LoopIcon from '@mui/icons-material/Loop';
1611
import CloseIcon from '@mui/icons-material/Close';
1712
import WarningIcon from '@mui/icons-material/Warning';
1813
import { MainState, RootState } from '../FrontendTypes';
14+
import { Lock, Unlock, Download, Upload, RefreshCw, X, AlertTriangle } from 'lucide-react';
1915

2016
function exportHandler(snapshots: []): void {
2117
// function that takes in our tabs[currentTab] object to be exported as a JSON file. NOTE: TypeScript needs to be updated
@@ -93,9 +89,9 @@ function ButtonsContainer(): JSX.Element {
9389
<div className='buttons-container'>
9490
<Button className='pause-button' type='button' onClick={() => dispatch(toggleMode('paused'))}>
9591
{paused ? (
96-
<LockIcon className='button-icon' sx={{ pr: 1 }} />
92+
<Lock className='button-icon' size={18} />
9793
) : (
98-
<LockOpenIcon className='button-icon' sx={{ pr: 1 }} />
94+
<Unlock className='button-icon' size={18} />
9995
)}
10096
{paused ? 'Locked' : 'Unlocked'}
10197
</Button>
@@ -105,11 +101,11 @@ function ButtonsContainer(): JSX.Element {
105101
//@ts-ignore
106102
onClick={() => exportHandler(tabs[currentTab])}
107103
>
108-
<FileDownloadIcon className='button-icon' sx={{ pr: 1 }} />
104+
<Download className='button-icon' size={18} />
109105
Download
110106
</Button>
111107
<Button className='import-button' onClick={() => importHandler(dispatch)}>
112-
<FileUploadIcon className='button-icon' sx={{ pr: 1 }} />
108+
<Upload className='button-icon' size={18} />
113109
Upload
114110
</Button>
115111
{/* The component below renders a button for the tutorial walkthrough of Reactime */}
@@ -126,7 +122,7 @@ function ButtonsContainer(): JSX.Element {
126122
</span>
127123
}
128124
>
129-
<LoopIcon className='button-icon' sx={{ pr: 1 }} />
125+
<RefreshCw className='button-icon' size={18} />
130126
Reconnect
131127
</Button>
132128
<Dialog className='dialog-pop-up' open={reconnectDialogOpen} onClose={handleReconnectCancel}>

src/app/styles/layout/_buttonsContainer.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@
113113
border: none;
114114
border-radius: 0.375rem;
115115
transition: all 200ms ease;
116+
gap: 8px;
116117
}
117118

118119
.buttons-container button:hover {
119120
background-color: #f3f4f6;
120-
}
121+
}

0 commit comments

Comments
 (0)