Remove currency feature flag
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
import React, { useCallback, useEffect, useState } from 'react';
|
||||
import { Box, Container, Divider, Grid, Typography } from '@material-ui/core';
|
||||
import { featureFlagsApiRef, Progress, useApi } from '@backstage/core';
|
||||
import { Progress, useApi } from '@backstage/core';
|
||||
import { default as MaterialAlert } from '@material-ui/lab/Alert';
|
||||
import { costInsightsApiRef } from '../../api';
|
||||
import { AlertActionCardList } from '../AlertActionCardList';
|
||||
@@ -49,7 +49,6 @@ import { useSubtleTypographyStyles } from '../../utils/styles';
|
||||
|
||||
export const CostInsightsPage = () => {
|
||||
const classes = useSubtleTypographyStyles();
|
||||
const featureFlags = useApi(featureFlagsApiRef);
|
||||
const client = useApi(costInsightsApiRef);
|
||||
const config = useConfig();
|
||||
const groups = useGroups();
|
||||
@@ -203,15 +202,11 @@ export const CostInsightsPage = () => {
|
||||
</Typography>
|
||||
</Box>
|
||||
<Box minHeight={40} maxHeight={60} display="flex">
|
||||
{featureFlags.isActive('cost-insights-currencies') && (
|
||||
<Box mr={1}>
|
||||
<CurrencySelect
|
||||
currency={currency}
|
||||
currencies={config.currencies}
|
||||
onSelect={setCurrency}
|
||||
/>
|
||||
</Box>
|
||||
)}
|
||||
<CurrencySelect
|
||||
currency={currency}
|
||||
currencies={config.currencies}
|
||||
onSelect={setCurrency}
|
||||
/>
|
||||
<ProjectSelect
|
||||
project={pageFilters.project}
|
||||
projects={projects || []}
|
||||
|
||||
@@ -57,6 +57,7 @@ export const CurrencySelect = ({
|
||||
onChange={handleOnChange}
|
||||
value={currency.kind || NULL_VALUE}
|
||||
renderValue={renderValue}
|
||||
style={{ marginRight: '15px' }}
|
||||
>
|
||||
{currencies.map((c: Currency) => (
|
||||
<MenuItem
|
||||
|
||||
Reference in New Issue
Block a user