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:
ErickSkrauch
2020-07-06 19:29:56 +03:00
parent 28ccab8a98
commit 82abe0a746
39 changed files with 834 additions and 534 deletions

View File

@@ -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);
}