Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
manulera committed Dec 17, 2024
1 parent d672aef commit cb4393e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/ShareYourCloning.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { shallowEqual, useDispatch, useSelector } from 'react-redux';
import { useDispatch, useSelector } from 'react-redux';
import Tabs from '@mui/material/Tabs';
import { isEqual } from 'lodash-es';
import DescriptionEditor from './DescriptionEditor';
import PrimerList from './primers/PrimerList';
import { cloningActions } from '../store/cloning';
Expand All @@ -11,15 +12,15 @@ import CloningHistory from './CloningHistory';
import SequenceTab from './SequenceTab';
import AppAlerts from './AppAlerts';

const { setCurrentTab } = cloningActions;

function ShareYourCloning() {
const dispatch = useDispatch();
const { setCurrentTab: setCurrentTabAction } = cloningActions;
const setCurrentTab = (tab) => dispatch(setCurrentTabAction(tab));
const network = useSelector((state) => state.cloning.network, shallowEqual);
const network = useSelector((state) => state.cloning.network, isEqual);
const currentTab = useSelector((state) => state.cloning.currentTab);

const changeTab = (event, newValue) => {
setCurrentTab(newValue);
dispatch(setCurrentTab(newValue));
};

return (
Expand Down

0 comments on commit cb4393e

Please sign in to comment.