tracker tasks

This commit is contained in:
Mikola 2024-05-03 14:26:36 +03:00
parent 3b8ec8e100
commit a7c58b2609
7 changed files with 27 additions and 16 deletions

View File

@ -665,8 +665,8 @@ export const ModalTiсket = ({
"Image",
"ImageCaption",
"ImageUpload",
"MediaEmbed",
],
"MediaEmbed"
]
}}
onChange={(event, editor) => {
const data = editor.getData();

View File

@ -684,8 +684,8 @@ export const TicketFullScreen = () => {
"Image",
"ImageCaption",
"ImageUpload",
"MediaEmbed",
],
"MediaEmbed"
]
}}
onChange={(event, editor) => {
const data = editor.getData();

View File

@ -631,7 +631,7 @@ export const TrackerModal = ({
"Image",
"ImageCaption",
"ImageUpload",
"MediaEmbed",
"MediaEmbed"
],
placeholder: "Описание задачи"
}}

View File

@ -128,8 +128,8 @@ export const TrackerTaskComment = ({
"Image",
"ImageCaption",
"ImageUpload",
"MediaEmbed",
],
"MediaEmbed"
]
}}
onChange={(event, editor) => {
const data = editor.getData();

View File

@ -44,23 +44,24 @@ export const PartnerCategories = () => {
const theme = useTheme(getTheme());
const [nodes, setNodes] = useState([]);
const [initialNodes, setInitialNodes] = useState([]);
const [activeTab, setActiveTab] = useState(1)
const [activeTab, setActiveTab] = useState(1);
const [search, setSearch] = useState("");
const tabs = [
{
id: 1,
name: 'Все'
name: "Все"
},
{
id: 2,
name: 'Фронтенд'
name: "Фронтенд"
},
{
id: 3,
name: 'Бэкенд'
}]
name: "Бэкенд"
}
];
const COLUMNS = [
{
@ -273,7 +274,17 @@ export const PartnerCategories = () => {
<>
<div className="table__tabs">
{tabs.map((tab) => {
return <button onClick={() => setActiveTab(tab.id)} key={tab.id} className={`table__tab ${tab.id === activeTab ? 'table__tab--active' : ''}`}>{tab.name}</button>
return (
<button
onClick={() => setActiveTab(tab.id)}
key={tab.id}
className={`table__tab ${
tab.id === activeTab ? "table__tab--active" : ""
}`}
>
{tab.name}
</button>
);
})}
</div>
<label className="table__search" htmlFor="search">

View File

@ -244,8 +244,8 @@ export const Summary = () => {
"Image",
"ImageCaption",
"ImageUpload",
"MediaEmbed",
],
"MediaEmbed"
]
}}
onChange={(event, editor) => {
const data = editor.getData();

View File

@ -70,7 +70,7 @@ export const Tracker = () => {
renderCell: (item) => (
<p dangerouslySetInnerHTML={{ __html: item.title }}></p>
),
sort: { sortKey: "NAME" },
sort: { sortKey: "NAME" }
},
{
label: "Создано",