* polish: api keys + tables - style tables and extract into table container - refactor api keys to sub components - show api key name and created at - remove two step approach to creating keys - define menu list/item styles on theme level completes FTD-1752 * add missing ChainId import * fix types * add edit edit modal * add update key func * make work with local api server --------- Co-authored-by: Jonas Daniels <[email protected]>
19 lines
377 B
TypeScript
19 lines
377 B
TypeScript
import {
|
|
TableContainer as CTableContainer,
|
|
TableContainerProps,
|
|
} from "@chakra-ui/react";
|
|
|
|
export const TableContainer: React.FC<TableContainerProps> = ({ children }) => {
|
|
return (
|
|
<CTableContainer
|
|
p={0}
|
|
overflowX="auto"
|
|
borderRadius="lg"
|
|
borderWidth={1}
|
|
borderColor="borderColor"
|
|
>
|
|
{children}
|
|
</CTableContainer>
|
|
);
|
|
};
|