Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ESYTD
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Дияр Амангельды
ESYTD
Commits
e33b0dbb
Commit
e33b0dbb
authored
Jul 23, 2024
by
Дияр Амангельды
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pagination antd error
parent
55e56094
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
src/components/HomePage/Home.tsx
src/components/HomePage/Home.tsx
+15
-5
src/pages/RequestPage.tsx
src/pages/RequestPage.tsx
+5
-1
No files found.
src/components/HomePage/Home.tsx
View file @
e33b0dbb
...
...
@@ -6,10 +6,20 @@ import { MaterialSymbol } from 'react-material-symbols';
const
Home
=
()
=>
{
const
navigate
=
useNavigate
();
const
handleAddClick
=
()
=>
{
navigate
(
"
/add
"
);
};
const
handlePaginationChange
=
(
page
)
=>
{
console
.
log
(
"
Current page:
"
,
page
);
};
return
(
<
section
className=
'section'
>
<
div
className=
"add"
>
<
Button
href=
'/'
icon=
{
<
MaterialSymbol
icon=
'add_circle'
size=
{
20
}
color=
'#0E2B52'
/>
}
className=
'add_title'
>
Добавить
</
Button
>
<
Button
icon=
{
<
MaterialSymbol
icon=
'add_circle'
size=
{
20
}
color=
'#0E2B52'
/>
}
className=
'add_title'
onClick=
{
handleAddClick
}
>
Добавить
</
Button
>
</
div
>
<
div
className=
"data"
>
<
table
className=
"data-table"
>
...
...
@@ -31,7 +41,7 @@ const Home = () => {
<
td
>
050940002848
</
td
>
<
td
>
organization_code_1
</
td
>
<
td
>
ТОО “Рога и Копыта”
</
td
>
<
td
>
esutd-dev.arta.kz
</
td
>
<
td
>
esutd-dev.arta.kz
</
td
>
<
td
>
активен
</
td
>
<
td
>
<
button
className=
"view-btn"
onClick=
{
()
=>
navigate
(
"
/edit
"
)
}
>
...
...
@@ -84,10 +94,10 @@ const Home = () => {
</
table
>
</
div
>
<
div
className=
'pagination-container'
>
<
Pagination
current=
{
1
}
defaultCurrent=
{
1
}
pageSize=
{
1
}
total=
{
10
}
/>
<
Pagination
current=
{
1
}
defaultCurrent=
{
1
}
pageSize=
{
1
}
total=
{
10
}
onChange=
{
handlePaginationChange
}
/>
</
div
>
</
section
>
)
}
)
;
}
;
export
default
Home
;
src/pages/RequestPage.tsx
View file @
e33b0dbb
...
...
@@ -6,6 +6,10 @@ import '../../src/styles/Home/requiestPage.css';
const
dateFormat
=
'
YYYY/MM/DD
'
;
const
RequestPage
:
React
.
FC
=
()
=>
{
const
handlePaginationChange
=
(
page
)
=>
{
console
.
log
(
"
Current page:
"
,
page
);
};
return
(
<
div
className=
'container'
style=
{
{
minWidth
:
'
1440px
'
}
}
>
<
div
className=
'filter'
style=
{
{
margin
:
'
20px 20px 10px
'
,
display
:
'
flex
'
,
alignItems
:
'
center
'
,
justifyContent
:
'
space-between
'
}
}
>
...
...
@@ -109,7 +113,7 @@ const RequestPage: React.FC = () => {
</div> */
}
<
div
className=
'pagination-container'
>
<
Pagination
current=
{
1
}
defaultCurrent=
{
1
}
pageSize=
{
1
}
total=
{
10
}
/>
<
Pagination
current=
{
1
}
defaultCurrent=
{
1
}
pageSize=
{
1
}
total=
{
10
}
onChange=
{
handlePaginationChange
}
/>
</
div
>
</
div
>
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment