Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct complaint's spelling in all files and folders #28

Merged
merged 1 commit into from
Jan 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/actions/complains.js → src/actions/complaints.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from 'axios'

export const getComplains = (url, successCallBack, errCallBack) => {
export const getComplaints = (url, successCallBack, errCallBack) => {
return (dispatch) => {
axios({
method: 'get',
Expand All @@ -10,7 +10,7 @@ export const getComplains = (url, successCallBack, errCallBack) => {
successCallBack(response)
let item = response.data
dispatch({
type: 'GET_ALL_COMPLAINS',
type: 'GET_ALL_COMPLAINTS',
payload: item
})
})
Expand All @@ -19,7 +19,7 @@ export const getComplains = (url, successCallBack, errCallBack) => {
})
}
}
export const getPendingComplains = (url, successCallBack, errCallBack) => {
export const getPendingComplaints = (url, successCallBack, errCallBack) => {
return (dispatch) => {
axios({
method: 'get',
Expand All @@ -29,7 +29,7 @@ export const getPendingComplains = (url, successCallBack, errCallBack) => {
successCallBack(response)
let item = response.data
dispatch({
type: 'GET_PENDING_COMPLAINS',
type: 'GET_PENDING_COMPLAINTS',
payload: item
})
})
Expand All @@ -38,7 +38,7 @@ export const getPendingComplains = (url, successCallBack, errCallBack) => {
})
}
}
export const getResolvedComplains = (url, successCallBack, errCallBack) => {
export const getResolvedComplaints = (url, successCallBack, errCallBack) => {
return (dispatch) => {
axios({
method: 'get',
Expand All @@ -48,7 +48,7 @@ export const getResolvedComplains = (url, successCallBack, errCallBack) => {
successCallBack(response)
let item = response.data
dispatch({
type: 'GET_RESOLVED_COMPLAINS',
type: 'GET_RESOLVED_COMPLAINTS',
payload: item
})
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import axios from 'axios'

import { getCookie } from 'formula_one/src/utils'

export const resolveComplain = (
export const resolveComplaint = (
id,
data,
residence,
Expand Down
6 changes: 3 additions & 3 deletions src/components/admin-complaints/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
.modalActions{
display: flex;
}
.complain-menu {
.complaint-menu {
border-bottom: 1px solid transparent;
}
.complain-header {
.complaint-header {
display: flex;
justify-content: space-between;
align-items: baseline;
}

.complain-header > div {
.complaint-header > div {
margin-right: 0.5rem;
}

Expand Down
Loading