Skip to content

Commit

Permalink
Merge pull request #15 from pieceowater-dev/dev
Browse files Browse the repository at this point in the history
fix: id
  • Loading branch information
baynt1 authored Jun 10, 2024
2 parents 7132c53 + 941ec16 commit a40aa62
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions src/entities/settings/posts-table/use-posts-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const usePostsTable = () => {
key: item.id,
name: item.name,
address: item.address,
identifier: item.identifier,
identifier: item.id,
}))
const select = res.data.items.map((item: IPostsResponse) => ({
value: item.id,
Expand Down Expand Up @@ -71,6 +71,11 @@ export const usePostsTable = () => {
}

const columns: TableProps<IPostsTableProps>['columns'] = [
{
title: 'Номер поста',
dataIndex: 'identifier',
key: 'identifier',
},
{
title: 'Имя поста',
dataIndex: 'name',
Expand All @@ -81,11 +86,6 @@ export const usePostsTable = () => {
dataIndex: 'address',
key: 'address',
},
{
title: 'Индификатор',
dataIndex: 'identifier',
key: 'identifier',
},
{
title: 'Действие',
key: 'action',
Expand Down
16 changes: 8 additions & 8 deletions src/features/settings/new-post/new-post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@ export const NewPost: FC<INewPostProps> = ({ open, handeOpen, item, refetch }) =
<Input />
</Form.Item>

<Form.Item<INewPostFormArgs>
label={'Индификатор'}
name={'identifier'}
rules={[{ required: true, message: 'Введите Индификатор' }]}
>
<Input />
</Form.Item>
{/* <Form.Item<INewPostFormArgs>*/}
{/* label={'Индификатор'}*/}
{/* name={'identifier'}*/}
{/* rules={[{ required: true, message: 'Введите Индификатор' }]}*/}
{/* >*/}
{/* <Input />*/}
{/* </Form.Item>*/}

<Form.Item<INewPostFormArgs> label={'Посты'} name={'users'}>
<Form.Item<INewPostFormArgs> label={'Пользователи'} name={'users'}>
<Select
mode={'multiple'}
allowClear={true}
Expand Down

0 comments on commit a40aa62

Please sign in to comment.