refactor: better names
This commit is contained in:
@@ -244,7 +244,7 @@ export const RightSidePanel: React.FC<RightSidePanelProps> = ({ onFinishCapture
|
|||||||
updatePaginationType(option);
|
updatePaginationType(option);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleStopGetText = useCallback(() => {
|
const discardGetText = useCallback(() => {
|
||||||
stopGetText();
|
stopGetText();
|
||||||
browserSteps.forEach(step => {
|
browserSteps.forEach(step => {
|
||||||
if (step.type === 'text') {
|
if (step.type === 'text') {
|
||||||
@@ -257,7 +257,7 @@ export const RightSidePanel: React.FC<RightSidePanelProps> = ({ onFinishCapture
|
|||||||
notify('info', 'All text capture steps discarded');
|
notify('info', 'All text capture steps discarded');
|
||||||
}, [browserSteps, stopGetText, deleteBrowserStep]);
|
}, [browserSteps, stopGetText, deleteBrowserStep]);
|
||||||
|
|
||||||
const handleStopGetList = useCallback(() => {
|
const discardGetList = useCallback(() => {
|
||||||
stopGetList();
|
stopGetList();
|
||||||
browserSteps.forEach(step => {
|
browserSteps.forEach(step => {
|
||||||
if (step.type === 'list') {
|
if (step.type === 'list') {
|
||||||
|
|||||||
Reference in New Issue
Block a user