diff --git a/src/components/blocks/APIPagination.js b/src/components/blocks/APIPagination.js
index 786e17ca..6ecce771 100644
--- a/src/components/blocks/APIPagination.js
+++ b/src/components/blocks/APIPagination.js
@@ -62,7 +62,7 @@ export const PagesContainer = styled(ControlsContainer)`
color: ${props.theme.colors.default.secondaryDark};`;
} else {
return `border: 1px solid ${props.theme.colors.default.shade5};
- color: ${props.theme.colors.default.secondary};`;
+ color: #586065;`;
}
}};
@@ -72,8 +72,8 @@ export const PagesContainer = styled(ControlsContainer)`
return `border: 1px solid ${props.theme.colors.default.secondaryDark};
color: ${props.theme.colors.default.secondaryDark};`;
} else {
- return `border: 1px solid ${props.theme.colors.default.secondaryDark};
- color: ${props.theme.colors.default.secondaryDark};`;
+ return `border: 1px solid ${props.theme.colors.default.shade5};
+ color: ${props.theme.colors.default.shade5};`;
}
}};
}
@@ -139,7 +139,7 @@ const APIPagination = withTheme(({ showLast = false, actions }) => {
!backButtonIsDisabled && changeCurrentPageTo(currentPageNumber - 1)
}
>
-
+
{displayedPages &&
displayedPages.map(element => (
@@ -153,14 +153,16 @@ const APIPagination = withTheme(({ showLast = false, actions }) => {
{element}
))}
- {showLast && currentPageNumber + 3 < numberOfPages && numberOfPages > 5 && (
- <>
-
- changeCurrentPageTo(numberOfPages)}>
- {numberOfPages}
-
- >
- )}
+ {showLast &&
+ currentPageNumber + 3 < numberOfPages &&
+ numberOfPages > 5 && (
+ <>
+
+ changeCurrentPageTo(numberOfPages)}>
+ {numberOfPages}
+
+ >
+ )}
{
!nextButtonIsDisabled && changeCurrentPageTo(currentPageNumber + 1)
}
>
-
+
);
diff --git a/src/components/blocks/Pagination.js b/src/components/blocks/Pagination.js
index 04f93ac9..92c37095 100644
--- a/src/components/blocks/Pagination.js
+++ b/src/components/blocks/Pagination.js
@@ -59,7 +59,7 @@ const PagesContainer = styled(ControlsContainer)`
color: ${props.theme.colors.default.secondaryDark};`;
} else {
return `border: 1px solid ${props.theme.colors.default.shade5};
- color: ${props.theme.colors.default.secondary};`;
+ color: #586065;`;
}
}};
@@ -69,8 +69,8 @@ const PagesContainer = styled(ControlsContainer)`
return `border: 1px solid ${props.theme.colors.default.secondaryDark};
color: ${props.theme.colors.default.secondaryDark};`;
} else {
- return `border: 1px solid ${props.theme.colors.default.secondaryDark};
- color: ${props.theme.colors.default.secondaryDark};`;
+ return `border: 1px solid ${props.theme.colors.default.shade5};
+ color: ${props.theme.colors.default.shade5};`;
}
}};
}
@@ -112,7 +112,7 @@ const Pagination = withTheme(
!backButtonIsDisabled && changeCurrentPageTo(currentPageNumber - 1)
}
>
-
+
{displayedPages &&
displayedPages.map(element => (
@@ -130,7 +130,7 @@ const Pagination = withTheme(
currentPageNumber + 2 + 1 < numberOfPages &&
numberOfPages > 5 && (
<>
-
+
changeCurrentPageTo(numberOfPages)}
>
@@ -145,7 +145,7 @@ const Pagination = withTheme(
!nextButtonIsDisabled && changeCurrentPageTo(currentPageNumber + 1)
}
>
-
+
);
diff --git a/src/components/icons/ArrowDownIcon.js b/src/components/icons/ArrowDownIcon.js
index ed46ec92..fad66368 100644
--- a/src/components/icons/ArrowDownIcon.js
+++ b/src/components/icons/ArrowDownIcon.js
@@ -1,17 +1,18 @@
import React from 'react';
import { withTheme } from 'styled-components';
-const ArrowDownIcon = withTheme(({ width, height }) => {
+const ArrowDownIcon = withTheme(({ width, height, color = 'black' }) => {
return (
);
diff --git a/src/components/icons/ThreeDotsIcon.js b/src/components/icons/ThreeDotsIcon.js
index 3fe6e2bc..9d19dbc0 100644
--- a/src/components/icons/ThreeDotsIcon.js
+++ b/src/components/icons/ThreeDotsIcon.js
@@ -1,17 +1,18 @@
import React from 'react';
import { withTheme } from 'styled-components';
-const ThreeDotsIcon = withTheme(({ width, height }) => {
+const ThreeDotsIcon = withTheme(({ width, height, color = 'black' }) => {
return (
);
diff --git a/src/pages/Audit/index.js b/src/pages/Audit/index.js
index 14c89aa9..52b14f46 100644
--- a/src/pages/Audit/index.js
+++ b/src/pages/Audit/index.js
@@ -118,6 +118,7 @@ const Audit = () => {
limit: constants.MAX_AUDIT_TABLE_SIZE,
useMockedResponse: false,
order: newSortOrder,
+ storeFullResponse: true,
}),
);
}, [auditSortOrder, setAuditSortOrder, selectedOrgUid]);
@@ -133,6 +134,7 @@ const Audit = () => {
limit: constants.MAX_AUDIT_TABLE_SIZE,
useMockedResponse: false,
order: auditSortOrder,
+ storeFullResponse: true,
}),
);
},
@@ -195,6 +197,7 @@ const Audit = () => {
limit: constants.MAX_AUDIT_TABLE_SIZE,
useMockedResponse: false,
order: auditSortOrder,
+ storeFullResponse: true,
}),
)
}
diff --git a/src/store/actions/climateWarehouseActions.js b/src/store/actions/climateWarehouseActions.js
index ea8e60d6..2e7311fd 100644
--- a/src/store/actions/climateWarehouseActions.js
+++ b/src/store/actions/climateWarehouseActions.js
@@ -65,11 +65,15 @@ export const actions = keyMirror(
'GET_TRANSFER_OFFER',
);
+/*
+ * the option storeFullResponse means that we are storing the entire response instead of just the data object
+ * this is needed because there is currently an inconsistency in how the responses are managed that needs to be fixed.
+ */
const getClimateWarehouseTable = (
url,
action,
mockAction,
- { useMockedResponse = false, useApiMock = false },
+ { useMockedResponse = false, useApiMock = false, storeFullResponse = false },
) => {
return async dispatch => {
dispatch(activateProgressIndicator);
@@ -91,7 +95,8 @@ const getClimateWarehouseTable = (
if (
typeof results === 'object' &&
results !== null &&
- 'data' in results
+ 'data' in results &&
+ storeFullResponse === false
) {
dispatch({
type: action,
@@ -2379,6 +2384,7 @@ export const getRatings = options => {
export const getAudit = options => {
return dispatch => {
+ console.log({ options });
if (options?.orgUid && options?.limit && options?.page) {
dispatch(
getClimateWarehouseTable(