Skip to content

Commit f735c41

Browse files
committed
removed persist feature, removed handler function from ButtonsContainer
1 parent 020b2b7 commit f735c41

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

src/app/containers/ButtonsContainer.tsx

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
// @ts-nocheck
22

33
import * as React from 'react';
4-
import {
5-
useState, useRef, useEffect,
6-
} from 'react';
74
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
85
import {
96
faUpload,
10-
faQuestion,
117
faDownload,
128
faSquare,
139
faColumns,
@@ -54,16 +50,11 @@ function importHandler(dispatch: (a: any) => void) {
5450
fileUpload.click();
5551
}
5652

57-
function howToUseHandler() {
58-
window.open('https://github.com/open-source-labs/reactime', '_blank');
59-
return null;
60-
}
61-
6253
function ButtonsContainer(): JSX.Element {
6354
const [{ tabs, currentTab, split, currentTabInApp }, dispatch] = useStoreContext();
6455
const {
6556
snapshots,
66-
mode: { paused, persist },
57+
mode: { paused },
6758
} = tabs[currentTab];
6859

6960
return (
@@ -94,20 +85,6 @@ function ButtonsContainer(): JSX.Element {
9485
{split ? 'Unsplit' : 'Split'}
9586
</button>
9687

97-
{/* removing the UI for now Defunt perist feauture. See docs for more info */}
98-
{/* <button
99-
className="persist-button"
100-
type="button"
101-
onClick={() => dispatch(toggleMode('persist'))}
102-
>
103-
{persist ? (
104-
<FontAwesomeIcon icon={faRedoAlt} />
105-
) : (
106-
<FontAwesomeIcon icon={faMapPin} />
107-
)}
108-
{persist ? 'Unpersist' : 'Persist'}
109-
</button> */}
110-
11188
<button
11289
className="export-button"
11390
type="button"

0 commit comments

Comments
 (0)