mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
feat: link to change request configuration (#4494)
This commit is contained in:
parent
4af826000d
commit
67ef0507a1
@ -5,7 +5,7 @@ export const useStyles = makeStyles()(theme => ({
|
||||
padding: theme.spacing(0, 4),
|
||||
},
|
||||
bodyClass: {
|
||||
padding: theme.spacing(4),
|
||||
padding: theme.spacing(2, 4, 4, 4),
|
||||
overflowX: 'auto',
|
||||
},
|
||||
}));
|
||||
|
@ -8,7 +8,8 @@ import {
|
||||
} from 'component/common/Table';
|
||||
import { SortingRule, useSortBy, useTable } from 'react-table';
|
||||
import { SearchHighlightProvider } from 'component/common/Table/SearchHighlightContext/SearchHighlightContext';
|
||||
import { styled, Tab, Tabs, useMediaQuery } from '@mui/material';
|
||||
import { styled, Tab, Tabs, Box, useMediaQuery } from '@mui/material';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { sortTypes } from 'utils/sortTypes';
|
||||
import { useEffect, useMemo, useState } from 'react';
|
||||
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
||||
@ -52,6 +53,12 @@ const StyledTabButton = styled(Tab)(({ theme }) => ({
|
||||
},
|
||||
}));
|
||||
|
||||
const ConftigurationLinkBox = styled(Box)(({ theme }) => ({
|
||||
textAlign: 'right',
|
||||
paddingBottom: theme.spacing(2),
|
||||
fontSize: theme.fontSizes.smallBody,
|
||||
}));
|
||||
|
||||
export const ChangeRequestsTabs = ({
|
||||
changeRequests = [],
|
||||
loading,
|
||||
@ -282,6 +289,11 @@ export const ChangeRequestsTabs = ({
|
||||
/>
|
||||
}
|
||||
>
|
||||
<ConftigurationLinkBox>
|
||||
<Link to={`/projects/${projectId}/settings/change-requests`}>
|
||||
Change request configuration
|
||||
</Link>
|
||||
</ConftigurationLinkBox>
|
||||
<SearchHighlightProvider value={getSearchText(searchValue)}>
|
||||
<Table {...getTableProps()}>
|
||||
<SortableTableHeader headerGroups={headerGroups} />
|
||||
|
Loading…
Reference in New Issue
Block a user