File tree Expand file tree Collapse file tree 3 files changed +19
-41
lines changed
client/me/purchases/billing-history Expand file tree Collapse file tree 3 files changed +19
-41
lines changed Original file line number Diff line number Diff line change @@ -47,24 +47,20 @@ export default function BillingHistoryListDataView( {
47
47
const handleViewChange = ( view : View ) => viewState . updateView ( view as ViewStateUpdate ) ;
48
48
49
49
return (
50
- < div className = "billing-history" >
51
- < div className = "dataviews-wrapper" >
52
- < DataViews
53
- data = { paginatedItems }
54
- paginationInfo = { {
55
- totalItems,
56
- totalPages,
57
- } }
58
- fields = { fields }
59
- view = { viewState . view }
60
- search
61
- searchLabel = { translate ( 'Search receipts' ) }
62
- onChangeView = { handleViewChange }
63
- defaultLayouts = { DEFAULT_LAYOUT }
64
- actions = { actions }
65
- isLoading = { isLoading }
66
- />
67
- </ div >
68
- </ div >
50
+ < DataViews
51
+ data = { paginatedItems }
52
+ paginationInfo = { {
53
+ totalItems,
54
+ totalPages,
55
+ } }
56
+ fields = { fields }
57
+ view = { viewState . view }
58
+ search
59
+ searchLabel = { translate ( 'Search receipts' ) }
60
+ onChangeView = { handleViewChange }
61
+ defaultLayouts = { DEFAULT_LAYOUT }
62
+ actions = { actions }
63
+ isLoading = { isLoading }
64
+ />
69
65
) ;
70
66
}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export function BillingHistoryContent( {
28
28
const useDataViewBillingHistoryList = config . isEnabled ( 'purchases/billing-history-data-view' ) ;
29
29
30
30
return (
31
- < Card className = "billing-history__receipts " >
31
+ < Card id = "billing-history" className = "section-content" tagName = "section ">
32
32
{ useDataViewBillingHistoryList ? (
33
33
< BillingHistoryListDataView getReceiptUrlFor = { getReceiptUrlFor } />
34
34
) : (
@@ -61,7 +61,7 @@ function BillingHistory() {
61
61
const vatText = vatDetails . id ? editVatText : addVatText ;
62
62
63
63
return (
64
- < Main wideLayout className = "billing-history" >
64
+ < Main id = "purchases" wideLayout >
65
65
< DocumentHead title = { titles . billingHistory } />
66
66
< PageViewTracker path = "/me/purchases/billing" title = "Me > Billing History" />
67
67
< NavigationHeader
Original file line number Diff line number Diff line change 1
- .billing-history {
2
- .navigation-header ::after {
3
- display : none ;
4
- }
1
+ #billing-history {
5
2
6
3
.dataviews-wrapper {
7
4
width : 100% ;
8
5
margin-bottom : 1rem ;
6
+ padding : 0 1rem ;
9
7
10
8
.dataviews-view-table {
11
9
width : 100% ;
201
199
gap : 1em ;
202
200
}
203
201
}
204
-
205
- @media screen and (min-width : 782px ) {
206
- body .is-section-me .navigation-header ::after {
207
- display : none ;
208
- }
209
- }
210
-
211
- body .is-section-me div .layout.is-global-sidebar-visible .layout__primary .billing-history.main > * {
212
- max-width : 100% ;
213
- }
214
-
215
- @media screen and (min-width : 782px ) {
216
- body .is-section-me .navigation-header ::after {
217
- display : none !important ;
218
- }
219
- }
You can’t perform that action at this time.
0 commit comments