Skip to content

Commit

Permalink
routes changed
Browse files Browse the repository at this point in the history
Signed-off-by: Riya Saxena <[email protected]>
  • Loading branch information
riysaxen-amzn committed Aug 30, 2024
1 parent 1868271 commit 1f4faf2
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions public/pages/Correlations/containers/CorrelationRules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
EuiInMemoryTable,
EuiEmptyPrompt,
} from '@elastic/eui';
import { BREADCRUMBS, PLUGIN_NAME, ROUTES } from '../../../utils/constants';
import { BREADCRUMBS, ROUTES } from '../../../utils/constants';
import { DataStore } from '../../../store/DataStore';
import {
getCorrelationRulesTableColumns,
Expand Down Expand Up @@ -56,7 +56,7 @@ export const CorrelationRules: React.FC<CorrelationRulesProps> = (props: Correla
const createRuleAction = useMemo(
() => (
<EuiButton
href={`${PLUGIN_NAME}#${ROUTES.CORRELATION_RULE_CREATE}`}
href={`#${ROUTES.CORRELATION_RULE_CREATE}`}
data-test-subj={'create_rule_button'}
fill={true}
>
Expand Down
4 changes: 2 additions & 2 deletions public/pages/CreateDetector/containers/CreateDetector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
} from '@elastic/eui';
import DefineDetector from '../components/DefineDetector/containers/DefineDetector';
import { createDetectorSteps, PENDING_DETECTOR_ID } from '../utils/constants';
import { BREADCRUMBS, EMPTY_DEFAULT_DETECTOR, PLUGIN_NAME, ROUTES } from '../../../utils/constants';
import { BREADCRUMBS, EMPTY_DEFAULT_DETECTOR, ROUTES } from '../../../utils/constants';
import ConfigureAlerts from '../components/ConfigureAlerts';
import { FieldMapping } from '../../../../models/interfaces';
import { EuiContainedStepProps } from '@elastic/eui/src/components/steps/steps';
Expand Down Expand Up @@ -395,7 +395,7 @@ export default class CreateDetector extends Component<CreateDetectorProps, Creat

<EuiFlexGroup alignItems={'center'} justifyContent={'flexEnd'}>
<EuiFlexItem grow={false}>
<EuiButtonEmpty href={`${PLUGIN_NAME}#${ROUTES.DETECTORS}`}>Cancel</EuiButtonEmpty>
<EuiButtonEmpty href={`#${ROUTES.DETECTORS}`}>Cancel</EuiButtonEmpty>
</EuiFlexItem>

{currentStep > DetectorCreationStep.DEFINE_DETECTOR && (
Expand Down
4 changes: 2 additions & 2 deletions public/pages/Detectors/containers/Detectors/Detectors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
EuiText,
EuiTitle,
} from '@elastic/eui';
import { BREADCRUMBS, DEFAULT_EMPTY_DATA, PLUGIN_NAME, ROUTES } from '../../../../utils/constants';
import { BREADCRUMBS, DEFAULT_EMPTY_DATA, ROUTES } from '../../../../utils/constants';
import DeleteModal from '../../../../components/DeleteModal';
import { getDetectorNames } from '../../utils/helpers';
import {
Expand Down Expand Up @@ -261,7 +261,7 @@ export default class Detectors extends Component<DetectorsProps, DetectorsState>
<EuiContextMenuPanel items={this.getActionItems(loadingDetectors, selectedItems)} />
</EuiPopover>,
<EuiButton
href={`${PLUGIN_NAME}#${ROUTES.DETECTORS_CREATE}`}
href={`#${ROUTES.DETECTORS_CREATE}`}
fill={true}
data-test-subj={'detectorsCreateButton'}
>
Expand Down
4 changes: 2 additions & 2 deletions public/pages/Overview/components/Widgets/Summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
TimeUnit,
} from '../../utils/helpers';
import { createSelectComponent, renderVisualization } from '../../../../utils/helpers';
import { PLUGIN_NAME, ROUTES } from '../../../../utils/constants';
import { ROUTES } from '../../../../utils/constants';
import { ChartContainer } from '../../../../components/Charts/ChartContainer';
import { getLogTypeLabel } from '../../../LogTypes/utils/helpers';
import { OverviewAlertItem, OverviewFindingItem } from '../../../../../types';
Expand Down Expand Up @@ -174,7 +174,7 @@ export const Summary: React.FC<SummaryProps> = ({
detector to generate findings.
</p>
<EuiButton
href={`${PLUGIN_NAME}#${ROUTES.DETECTORS_CREATE}`}
href={`#${ROUTES.DETECTORS_CREATE}`}
fill={true}
data-test-subj={'detectorsCreateButton'}
>
Expand Down
3 changes: 1 addition & 2 deletions public/pages/Overview/containers/Overview/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
BREADCRUMBS,
DEFAULT_DATE_RANGE,
MAX_RECENTLY_USED_TIME_RANGES,
PLUGIN_NAME,
ROUTES,
} from '../../../../utils/constants';
import { CoreServicesContext } from '../../../../../public/components/core_services';
Expand Down Expand Up @@ -205,7 +204,7 @@ export const Overview: React.FC<OverviewProps> = (props) => {

const createDetectorAction = (
<EuiButton
href={`${PLUGIN_NAME}#${ROUTES.DETECTORS_CREATE}`}
href={`#${ROUTES.DETECTORS_CREATE}`}
fill={true}
data-test-subj={'detectorsCreateButton'}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
EuiSteps,
EuiTitle,
} from '@elastic/eui';
import { BREADCRUMBS, PLUGIN_NAME, ROUTES } from '../../../../utils/constants';
import { BREADCRUMBS, ROUTES } from '../../../../utils/constants';
import { SelectThreatIntelLogSources } from '../../components/SelectLogSourcesForm/SelectThreatIntelLogSourcesForm';
import {
ThreatIntelScanConfig,
Expand Down Expand Up @@ -341,7 +341,7 @@ export const ThreatIntelScanConfigForm: React.FC<ThreatIntelScanConfigFormProps>
<EuiSpacer />
<EuiFlexGroup alignItems={'center'} justifyContent={'flexEnd'}>
<EuiFlexItem grow={false}>
<EuiButtonEmpty href={`${PLUGIN_NAME}#${ROUTES.THREAT_INTEL_OVERVIEW}`}>
<EuiButtonEmpty href={`#${ROUTES.THREAT_INTEL_OVERVIEW}`}>
Cancel
</EuiButtonEmpty>
</EuiFlexItem>
Expand Down

0 comments on commit 1f4faf2

Please sign in to comment.