mirror of https://github.com/msgbyte/tailchat
feat(admin): add group filter in chat list
parent
0cd4268a65
commit
b9b1931868
@ -0,0 +1,12 @@
|
||||
import React from 'react';
|
||||
import { ReferenceField, ReferenceFieldProps, TextField } from 'react-admin';
|
||||
|
||||
export const GroupField: React.FC<Omit<ReferenceFieldProps, 'reference'>> =
|
||||
React.memo((props) => {
|
||||
return (
|
||||
<ReferenceField link="show" {...props} reference="groups">
|
||||
<TextField source="name" />
|
||||
</ReferenceField>
|
||||
);
|
||||
});
|
||||
GroupField.displayName = 'GroupField';
|
@ -0,0 +1,6 @@
|
||||
import React from 'react';
|
||||
import { Box } from '@mui/material';
|
||||
|
||||
export const PostListActionToolbar = ({ children, ...props }) => (
|
||||
<Box sx={{ alignItems: 'center', display: 'flex' }}>{children}</Box>
|
||||
);
|
Loading…
Reference in New Issue