1
0
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:
Mateusz Kwasniewski 2023-08-15 14:18:02 +02:00 committed by GitHub
parent 4af826000d
commit 67ef0507a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 2 deletions

View File

@ -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',
},
}));

View File

@ -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} />