@@ -6,9 +6,6 @@ import { DateTime } from "luxon"
66import { comma } from " @/services/utils"
77import { IbcChainName , IbcChainLogo } from " @/services/constants/ibc"
88
9- /** UI */
10- import Button from " @/components/ui/Button.vue"
11-
129/** Shared Components */
1310import TablePlaceholderView from " @/components/shared/TablePlaceholderView.vue"
1411
@@ -18,36 +15,17 @@ import { useCacheStore } from "@/store/cache.store"
1815const modalsStore = useModalsStore ()
1916const cacheStore = useCacheStore ()
2017
21- const emit = defineEmits ([" onPrevPage" , " onNextPage" , " updatePage" ])
2218const props = defineProps ({
2319 transfers: {
2420 type: Array ,
2521 default: [],
2622 },
27- page: {
28- type: Number ,
29- default: 1 ,
30- },
3123 isLoading: {
3224 type: Boolean ,
3325 default: false ,
3426 },
3527})
3628
37- /** Pagination */
38- const handlePrevPage = () => {
39- if (props .page === 1 ) return
40- emit (" onPrevPage" )
41- }
42-
43- const isNextPageDisabled = computed (() => {
44- return ! props .transfers .length || props .transfers .length !== 10
45- })
46- const handleNextPage = () => {
47- if (isNextPageDisabled .value ) return
48- emit (" onNextPage" )
49- }
50-
5129const handleOpenTransferModal = (transfer ) => {
5230 cacheStore .current .transfer = transfer
5331 modalsStore .open (" ibcTransfer" )
@@ -173,31 +151,11 @@ const getChainLogo = (transfer, target) => {
173151 : descriptionWidth= " 260"
174152 style= " height: 100%"
175153 / >
176-
177- <!-- Pagination -->
178- < Flex align= " center" gap= " 6" : class = " $style.pagination" >
179- < Button @click= " emit('updatePage', 1)" type= " secondary" size= " mini" : disabled= " page === 1" >
180- < Icon name= " arrow-left-stop" size= " 12" color= " primary" / >
181- < / Button>
182- < Button type= " secondary" @click= " handlePrevPage" size= " mini" : disabled= " page === 1" >
183- < Icon name= " arrow-left" size= " 12" color= " primary" / >
184- < / Button>
185-
186- < Button type= " secondary" size= " mini" disabled>
187- < Text size= " 12" weight= " 600" color= " primary" > Page {{ comma (page) }} < / Text >
188- < / Button>
189-
190- < Button @click= " handleNextPage" type= " secondary" size= " mini" : disabled= " isNextPageDisabled" >
191- < Icon name= " arrow-right" size= " 12" color= " primary" / >
192- < / Button>
193- < / Flex>
194154 < / Flex>
195155< / template>
196156
197157< style module >
198158.wrapper {
199- height: 100 % ;
200-
201159 border- radius: 4px 4px 8px 8px ;
202160 background: var (-- card- background);
203161
@@ -264,15 +222,11 @@ const getChainLogo = (transfer, target) => {
264222 overflow- x: auto;
265223}
266224
267- .table . disabled {
225+ .disabled {
268226 opacity: 0.5 ;
269227 pointer- events: none;
270228}
271229
272- .pagination {
273- padding: 8px 16px 16px 16px ;
274- }
275-
276230@media (max - width : 800px ) {
277231 .table {
278232 border- radius: 4px 4px 8px 8px ;
0 commit comments