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 }) => {
|
export const InstanceStatus: FC = ({ children }) => {
|
||||||
const { instanceStatus, refetchInstanceStatus, isBilling } =
|
const { instanceStatus, refetchInstanceStatus } = useInstanceStatus();
|
||||||
useInstanceStatus();
|
|
||||||
const { extendTrial } = useInstanceStatusApi();
|
const { extendTrial } = useInstanceStatusApi();
|
||||||
const { setToastApiError } = useToast();
|
const { setToastApiError } = useToast();
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import { StrategiesList } from 'component/strategies/StrategiesList/StrategiesLi
|
|||||||
import { TagTypeList } from 'component/tags/TagTypeList/TagTypeList';
|
import { TagTypeList } from 'component/tags/TagTypeList/TagTypeList';
|
||||||
import { AddonList } from 'component/addons/AddonList/AddonList';
|
import { AddonList } from 'component/addons/AddonList/AddonList';
|
||||||
import Login from 'component/user/Login/Login';
|
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 { NewUser } from 'component/user/NewUser/NewUser';
|
||||||
import ResetPassword from 'component/user/ResetPassword/ResetPassword';
|
import ResetPassword from 'component/user/ResetPassword/ResetPassword';
|
||||||
import ForgottenPassword from 'component/user/ForgottenPassword/ForgottenPassword';
|
import ForgottenPassword from 'component/user/ForgottenPassword/ForgottenPassword';
|
||||||
|
@ -8,7 +8,6 @@ import ProjectInfo from './ProjectInfo/ProjectInfo';
|
|||||||
import { usePageTitle } from 'hooks/usePageTitle';
|
import { usePageTitle } from 'hooks/usePageTitle';
|
||||||
import { useRequiredPathParam } from 'hooks/useRequiredPathParam';
|
import { useRequiredPathParam } from 'hooks/useRequiredPathParam';
|
||||||
import { useLastViewedProject } from 'hooks/useLastViewedProject';
|
import { useLastViewedProject } from 'hooks/useLastViewedProject';
|
||||||
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
|
||||||
import { ProjectStats } from './ProjectStats/ProjectStats';
|
import { ProjectStats } from './ProjectStats/ProjectStats';
|
||||||
|
|
||||||
const refreshInterval = 15 * 1000;
|
const refreshInterval = 15 * 1000;
|
||||||
|
@ -9,7 +9,6 @@ import {
|
|||||||
SEGMENT_NEXT_BTN_ID,
|
SEGMENT_NEXT_BTN_ID,
|
||||||
} from 'utils/testIds';
|
} from 'utils/testIds';
|
||||||
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
||||||
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
|
||||||
import useProjects from 'hooks/api/getters/useProjects/useProjects';
|
import useProjects from 'hooks/api/getters/useProjects/useProjects';
|
||||||
import { useOptionalPathParam } from 'hooks/useOptionalPathParam';
|
import { useOptionalPathParam } from 'hooks/useOptionalPathParam';
|
||||||
import { GO_BACK } from 'constants/navigate';
|
import { GO_BACK } from 'constants/navigate';
|
||||||
@ -58,7 +57,6 @@ const StyledCancelButton = styled(Button)(({ theme }) => ({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
export const SegmentFormStepOne: React.FC<ISegmentFormPartOneProps> = ({
|
export const SegmentFormStepOne: React.FC<ISegmentFormPartOneProps> = ({
|
||||||
children,
|
|
||||||
name,
|
name,
|
||||||
description,
|
description,
|
||||||
project,
|
project,
|
||||||
@ -66,12 +64,10 @@ export const SegmentFormStepOne: React.FC<ISegmentFormPartOneProps> = ({
|
|||||||
setDescription,
|
setDescription,
|
||||||
setProject,
|
setProject,
|
||||||
errors,
|
errors,
|
||||||
clearErrors,
|
|
||||||
setCurrentStep,
|
setCurrentStep,
|
||||||
}) => {
|
}) => {
|
||||||
const segmentId = useOptionalPathParam('segmentId');
|
const segmentId = useOptionalPathParam('segmentId');
|
||||||
const projectId = useOptionalPathParam('projectId');
|
const projectId = useOptionalPathParam('projectId');
|
||||||
const { uiConfig } = useUiConfig();
|
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const { projects, loading: loadingProjects } = useProjects();
|
const { projects, loading: loadingProjects } = useProjects();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user