mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 04:50:36 +03:00
Merge branch 'main' of https://github.com/IRBorisov/ConceptPortal
This commit is contained in:
commit
a669f70efc
|
@ -54,7 +54,6 @@
|
||||||
"eslint-plugin-promise": "^6.1.1",
|
"eslint-plugin-promise": "^6.1.1",
|
||||||
"eslint-plugin-react": "^7.33.0",
|
"eslint-plugin-react": "^7.33.0",
|
||||||
"eslint-plugin-simple-import-sort": "^10.0.0",
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
||||||
"tailwindcss": "^3.3.2",
|
"tailwindcss": "^3.3.2"
|
||||||
"typescript": "^5.1.6"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import { IRSForm } from '../../utils/models'
|
|
||||||
import { useNavigate } from 'react-router-dom';
|
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
import { useIntl } from 'react-intl';
|
import { useIntl } from 'react-intl';
|
||||||
|
import { useNavigate } from 'react-router-dom';
|
||||||
|
|
||||||
import DataTableThemed from '../../components/Common/DataTableThemed';
|
import DataTableThemed from '../../components/Common/DataTableThemed';
|
||||||
import { useUsers } from '../../context/UsersContext';
|
import { useUsers } from '../../context/UsersContext';
|
||||||
|
import { type IRSForm } from '../../utils/models'
|
||||||
|
|
||||||
interface RSFormsTableProps {
|
interface RSFormsTableProps {
|
||||||
schemas: IRSForm[]
|
schemas: IRSForm[]
|
||||||
|
@ -19,7 +19,7 @@ function RSFormsTable({ schemas }: RSFormsTableProps) {
|
||||||
navigate(`/rsforms/${schema.id}`);
|
navigate(`/rsforms/${schema.id}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
const columns = useMemo(() =>
|
const columns = useMemo(() =>
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
name: 'Шифр',
|
name: 'Шифр',
|
||||||
|
@ -40,7 +40,7 @@ function RSFormsTable({ schemas }: RSFormsTableProps) {
|
||||||
{
|
{
|
||||||
name: 'Владелец',
|
name: 'Владелец',
|
||||||
id: 'owner',
|
id: 'owner',
|
||||||
selector: (schema: IRSForm) => schema.owner || 0,
|
selector: (schema: IRSForm) => schema.owner ?? 0,
|
||||||
format: (schema: IRSForm) => {
|
format: (schema: IRSForm) => {
|
||||||
return getUserLabel(schema.owner);
|
return getUserLabel(schema.owner);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user