feat(medusa-react,medusa,types,dashboard): added empty state + table for promotions list page (#6827)
what: - adds empty state for promotions list page - lists all promotions with pagination <img width="1663" alt="Screenshot 2024-03-26 at 14 19 27" src="https://github.com/medusajs/medusa/assets/5105988/ed0d5c65-d003-40f5-b899-540970d892f5"> <img width="1664" alt="Screenshot 2024-03-27 at 20 46 17" src="https://github.com/medusajs/medusa/assets/5105988/4aa40f09-fe3f-4f34-af7a-f5c183254c76">
This commit is contained in:
@@ -230,7 +230,7 @@ export type RequestQueryFields = {
|
||||
*
|
||||
* Fields included in the response if it's paginated.
|
||||
*/
|
||||
export type PaginatedResponse = {
|
||||
export type PaginatedResponse<T = unknown> = {
|
||||
/**
|
||||
* The limit applied on the retrieved items.
|
||||
*/
|
||||
@@ -245,7 +245,7 @@ export type PaginatedResponse = {
|
||||
* The total count of items.
|
||||
*/
|
||||
count: number
|
||||
}
|
||||
} & T
|
||||
|
||||
/**
|
||||
* The fields returned in the response of a DELETE request.
|
||||
|
||||
Reference in New Issue
Block a user