fix bus and translate to eus
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -82,6 +82,7 @@ export function EditableCell({
|
||||
onKeyDown={handleKeyDown}
|
||||
autoFocus
|
||||
sx={{ minWidth: 100 }}
|
||||
MenuProps={{ disablePortal: true }}
|
||||
>
|
||||
{options.map((opt) => (
|
||||
<MenuItem key={opt.value} value={opt.value}>
|
||||
|
||||
@ -62,7 +62,7 @@ export function IdeasTable() {
|
||||
if (isError) {
|
||||
return (
|
||||
<Box sx={{ p: 4, textAlign: 'center' }}>
|
||||
<Typography color="error">Failed to load ideas</Typography>
|
||||
<Typography color="error">Не удалось загрузить идеи</Typography>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
@ -137,9 +137,9 @@ export function IdeasTable() {
|
||||
}}
|
||||
>
|
||||
<Inbox sx={{ fontSize: 48, mb: 2, opacity: 0.5 }} />
|
||||
<Typography variant="h6">No ideas yet</Typography>
|
||||
<Typography variant="h6">Идей пока нет</Typography>
|
||||
<Typography variant="body2">
|
||||
Create your first idea to get started
|
||||
Создайте первую идею, чтобы начать
|
||||
</Typography>
|
||||
</Box>
|
||||
</TableCell>
|
||||
|
||||
@ -30,7 +30,7 @@ const priorityColors: Record<
|
||||
|
||||
export const createColumns = (onDelete: (id: string) => void) => [
|
||||
columnHelper.accessor('title', {
|
||||
header: 'Title',
|
||||
header: 'Название',
|
||||
cell: (info) => (
|
||||
<EditableCell
|
||||
idea={info.row.original}
|
||||
@ -44,7 +44,7 @@ export const createColumns = (onDelete: (id: string) => void) => [
|
||||
size: 250,
|
||||
}),
|
||||
columnHelper.accessor('status', {
|
||||
header: 'Status',
|
||||
header: 'Статус',
|
||||
cell: (info) => {
|
||||
const status = info.getValue();
|
||||
const label =
|
||||
@ -65,7 +65,7 @@ export const createColumns = (onDelete: (id: string) => void) => [
|
||||
size: 140,
|
||||
}),
|
||||
columnHelper.accessor('priority', {
|
||||
header: 'Priority',
|
||||
header: 'Приоритет',
|
||||
cell: (info) => {
|
||||
const priority = info.getValue();
|
||||
const label =
|
||||
@ -91,7 +91,7 @@ export const createColumns = (onDelete: (id: string) => void) => [
|
||||
size: 120,
|
||||
}),
|
||||
columnHelper.accessor('module', {
|
||||
header: 'Module',
|
||||
header: 'Модуль',
|
||||
cell: (info) => (
|
||||
<EditableCell
|
||||
idea={info.row.original}
|
||||
@ -103,7 +103,7 @@ export const createColumns = (onDelete: (id: string) => void) => [
|
||||
size: 120,
|
||||
}),
|
||||
columnHelper.accessor('targetAudience', {
|
||||
header: 'Target Audience',
|
||||
header: 'Целевая аудитория',
|
||||
cell: (info) => (
|
||||
<EditableCell
|
||||
idea={info.row.original}
|
||||
@ -115,7 +115,7 @@ export const createColumns = (onDelete: (id: string) => void) => [
|
||||
size: 150,
|
||||
}),
|
||||
columnHelper.accessor('description', {
|
||||
header: 'Description',
|
||||
header: 'Описание',
|
||||
cell: (info) => {
|
||||
const value = info.getValue();
|
||||
return (
|
||||
|
||||
@ -1,16 +1,16 @@
|
||||
import type { IdeaStatus, IdeaPriority } from '../../types/idea';
|
||||
|
||||
export const statusOptions: { value: IdeaStatus; label: string }[] = [
|
||||
{ value: 'backlog', label: 'Backlog' },
|
||||
{ value: 'todo', label: 'To Do' },
|
||||
{ value: 'in_progress', label: 'In Progress' },
|
||||
{ value: 'done', label: 'Done' },
|
||||
{ value: 'cancelled', label: 'Cancelled' },
|
||||
{ value: 'backlog', label: 'Бэклог' },
|
||||
{ value: 'todo', label: 'К выполнению' },
|
||||
{ value: 'in_progress', label: 'В работе' },
|
||||
{ value: 'done', label: 'Готово' },
|
||||
{ value: 'cancelled', label: 'Отменено' },
|
||||
];
|
||||
|
||||
export const priorityOptions: { value: IdeaPriority; label: string }[] = [
|
||||
{ value: 'low', label: 'Low' },
|
||||
{ value: 'medium', label: 'Medium' },
|
||||
{ value: 'high', label: 'High' },
|
||||
{ value: 'critical', label: 'Critical' },
|
||||
{ value: 'low', label: 'Низкий' },
|
||||
{ value: 'medium', label: 'Средний' },
|
||||
{ value: 'high', label: 'Высокий' },
|
||||
{ value: 'critical', label: 'Критичный' },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user