mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Extract general popups markup to its own component
Split popups controllers into separate components Implemented storybooks for all project's popups
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import request from 'app/services/request';
|
||||
|
||||
export default {
|
||||
send({ subject = '', email = '', message = '', category = '' }) {
|
||||
return request.post('/api/feedback', {
|
||||
subject,
|
||||
email,
|
||||
message,
|
||||
category,
|
||||
});
|
||||
},
|
||||
};
|
||||
interface SendFeedbackParams {
|
||||
subject: string;
|
||||
email: string;
|
||||
message: string;
|
||||
category: string | number;
|
||||
}
|
||||
|
||||
export function send(params: SendFeedbackParams) {
|
||||
return request.post('/api/feedback', params);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user