refactor: update button styles and improve delete dialog properties in dashboard pages
This commit is contained in:
@@ -9,14 +9,12 @@ const subscribePlanResponseSchema = z.object({
|
||||
}),
|
||||
})
|
||||
|
||||
type TTSubscribePlanId = Pick<TSubscribePlanSchema, 'id'>
|
||||
type TParameters = {
|
||||
payload: TTSubscribePlanId
|
||||
id: TSubscribePlanSchema['id']
|
||||
} & THttpServer
|
||||
|
||||
export const deleteSubscribePlanRequest = async (parameters: TParameters) => {
|
||||
const { payload, ...restParameters } = parameters
|
||||
const { id } = payload
|
||||
const { id, ...restParameters } = parameters
|
||||
try {
|
||||
const { data } = await HttpServer(restParameters).delete(
|
||||
`/api/subscribe-plan/${id}/delete`,
|
||||
|
||||
Reference in New Issue
Block a user