Skip to content

Commit

Permalink
1241: Applied coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
tuj committed Dec 10, 2024
1 parent ab060df commit 23c0c06
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/components/screen/screen-status.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import ConfigLoader from "../../config-loader";
* @param {object} props The props.
* @param {object} props.screen The screen.
* @param {string | null} props.mode The display mode: 'default' or 'minimal'
* @param {func} props.handleInput Handler for change in input.
* @param {Function} props.handleInput Handler for change in input.
* @returns {JSX.Element} The status element.
*/
function ScreenStatus({ screen, handleInput = () => {}, mode = "default" }) {
Expand Down Expand Up @@ -120,7 +120,7 @@ function ScreenStatus({ screen, handleInput = () => {}, mode = "default" }) {
className="margin-right-button"
size="sm"
>
<FontAwesomeIcon icon={faPlus} /> {t('connect')}
<FontAwesomeIcon icon={faPlus} /> {t("connect")}
</Button>
);
}
Expand Down
6 changes: 2 additions & 4 deletions src/components/screen/util/campaign-icon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ function CampaignIcon({ id, delay }) {
{ id },
{ skip: !getData }
);
const { data: groups, isLoading: isLoadingScreenGroups } = useGetV2ScreensByIdScreenGroupsQuery(
{ id },
{ skip: !getData }
);
const { data: groups, isLoading: isLoadingScreenGroups } =
useGetV2ScreensByIdScreenGroupsQuery({ id }, { skip: !getData });

useEffect(() => {
if (campaigns) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/screen/util/screen-columns.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import ScreenStatus from "../screen-status";
* @param {string} props.infoModalRedirect - The url for redirecting in the info modal.
* @param {string} props.infoModalTitle - The info modal title.
* @param {string} props.dataKey The data key for mapping the data.
* @param {bool} props.displayStatus Should status be displayed?
* @param {boolean} props.displayStatus Should status be displayed?
* @returns {object} The columns for the screens lists.
*/
function getScreenColumns({
Expand Down
2 changes: 1 addition & 1 deletion src/components/util/list/list-button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function ListButton({
redirectTo,
displayData,
modalTitle,
delayApiCall= 0,
delayApiCall = 0,
apiCall = () => {},
dataKey = "",
}) {
Expand Down
4 changes: 3 additions & 1 deletion src/redux/dynamic-base-query.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ const extendedBaseQuery = async (args, api, extraOptions) => {

if (newArgs.params["screenUser.latestRequest"]) {
const key = Object.keys(newArgs.params["screenUser.latestRequest"])[0];
const value = Object.values(newArgs.params["screenUser.latestRequest"])[0];
const value = Object.values(
newArgs.params["screenUser.latestRequest"]
)[0];
newArgs.params[`screenUser.latestRequest[${key}]`] = `${value}`;
}

Expand Down

0 comments on commit 23c0c06

Please sign in to comment.