mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-09 00:18:00 +01:00
refactor: misc cleanups (#4022)
Misc cleanups of unused imports / variables.
This commit is contained in:
parent
57066cf129
commit
5c9bf7b0e9
@ -105,8 +105,7 @@ const TrialDialog: VFC<ITrialDialogProps> = ({
|
||||
};
|
||||
|
||||
export const InstanceStatus: FC = ({ children }) => {
|
||||
const { instanceStatus, refetchInstanceStatus, isBilling } =
|
||||
useInstanceStatus();
|
||||
const { instanceStatus, refetchInstanceStatus } = useInstanceStatus();
|
||||
const { extendTrial } = useInstanceStatusApi();
|
||||
const { setToastApiError } = useToast();
|
||||
|
||||
|
@ -4,7 +4,7 @@ import { StrategiesList } from 'component/strategies/StrategiesList/StrategiesLi
|
||||
import { TagTypeList } from 'component/tags/TagTypeList/TagTypeList';
|
||||
import { AddonList } from 'component/addons/AddonList/AddonList';
|
||||
import Login from 'component/user/Login/Login';
|
||||
import { EEA, P, RE, SE, UG } from 'component/common/flags';
|
||||
import { EEA, P, SE, UG } from 'component/common/flags';
|
||||
import { NewUser } from 'component/user/NewUser/NewUser';
|
||||
import ResetPassword from 'component/user/ResetPassword/ResetPassword';
|
||||
import ForgottenPassword from 'component/user/ForgottenPassword/ForgottenPassword';
|
||||
|
@ -8,7 +8,6 @@ import ProjectInfo from './ProjectInfo/ProjectInfo';
|
||||
import { usePageTitle } from 'hooks/usePageTitle';
|
||||
import { useRequiredPathParam } from 'hooks/useRequiredPathParam';
|
||||
import { useLastViewedProject } from 'hooks/useLastViewedProject';
|
||||
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
||||
import { ProjectStats } from './ProjectStats/ProjectStats';
|
||||
|
||||
const refreshInterval = 15 * 1000;
|
||||
|
@ -9,7 +9,6 @@ import {
|
||||
SEGMENT_NEXT_BTN_ID,
|
||||
} from 'utils/testIds';
|
||||
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
||||
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
||||
import useProjects from 'hooks/api/getters/useProjects/useProjects';
|
||||
import { useOptionalPathParam } from 'hooks/useOptionalPathParam';
|
||||
import { GO_BACK } from 'constants/navigate';
|
||||
@ -58,7 +57,6 @@ const StyledCancelButton = styled(Button)(({ theme }) => ({
|
||||
}));
|
||||
|
||||
export const SegmentFormStepOne: React.FC<ISegmentFormPartOneProps> = ({
|
||||
children,
|
||||
name,
|
||||
description,
|
||||
project,
|
||||
@ -66,12 +64,10 @@ export const SegmentFormStepOne: React.FC<ISegmentFormPartOneProps> = ({
|
||||
setDescription,
|
||||
setProject,
|
||||
errors,
|
||||
clearErrors,
|
||||
setCurrentStep,
|
||||
}) => {
|
||||
const segmentId = useOptionalPathParam('segmentId');
|
||||
const projectId = useOptionalPathParam('projectId');
|
||||
const { uiConfig } = useUiConfig();
|
||||
const navigate = useNavigate();
|
||||
const { projects, loading: loadingProjects } = useProjects();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user