Skip to content
Open
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
5 changes: 2 additions & 3 deletions frontend/src/app/Logo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ import { Link } from "react-router-dom";

import ECLogo from "../../static/img/ps-logo.jpg";
import "./Logo.css";
// import {API_BASE_URL} from '../../config';
import {API_BASE_URL} from '../../config';

function Logo(props) {
return (
<div className="logo-container">
<Link to="/">
<img
// src={props.image? API_BASE_URL+"/media/"+props.image:ECLogo}
src={ECLogo}
src={props.image? API_BASE_URL+"/media/"+props.image:ECLogo}
alt="logo"
style={{
maxWidth: props.maxWidth,
Expand Down
9 changes: 4 additions & 5 deletions frontend/src/guest-view/components/GuestIncidentForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const VerticalLinearStepper = (props) => {
dispatch(fetchCategories());
dispatch(fetchChannels());
dispatch(fetchDistricts());
// dispatch(loadOrganization(queryParams.organization ? queryParams.organization : 1));
dispatch(loadOrganization(queryParams.organization ? queryParams.organization : 1));
}, []);

const { formatMessage: f } = useIntl();
Expand All @@ -130,6 +130,7 @@ const VerticalLinearStepper = (props) => {
const { elections, categories, channels, districts } = useSelector(
(state) => state.shared
);
const organization = useSelector((state) => state.guestView.organization);

function removeDuplicates(originalArray, prop) {
var newArray = [];
Expand Down Expand Up @@ -902,7 +903,7 @@ const VerticalLinearStepper = (props) => {
recipientMobile: incidentContact.recipientMobile,
recipientEmail: incidentContact.recipientEmail,
recipientTitle: recipientTitle,
// organizationId: queryParams.organization,
organizationId: queryParams.organization,
};
const dateTime = getFormattedDateTime();
if (dateTime) {
Expand Down Expand Up @@ -1143,15 +1144,13 @@ const VerticalLinearStepper = (props) => {
}

const isLoading = isLoadingIncident || isLoadingMetaData;
// const organization = useSelector((state) => state.guestView.organization);

return (
<div className={classes.root}>
<Grid container spacing={24}>
<Grid item xs={12} sm={6}>
<Grid item xs={12} sm={6}>
{/* <Logo image={organization ? organization.logo : null} /> */}
<Logo />
<Logo image={organization ? organization.logo : null} />
</Grid>
</Grid>

Expand Down