Skip to content

Commit

Permalink
Update error/empty state message and icon
Browse files Browse the repository at this point in the history
  • Loading branch information
LanesGood committed Nov 8, 2024
1 parent d9c1eef commit a1420ec
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/components/timeline/timeline-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Disclosure } from "@reach/disclosure"
import { DeploymentPanel } from "./deployment-panel"
import { DeploymentMap } from "./map"
import { replaceSlashes } from "../../utils/helpers"
import { ExclamationIcon } from "../../icons"
import { CaseiLogoIcon } from "../../icons"

const chartSettings = {
marginTop: 1,
Expand Down Expand Up @@ -132,8 +132,8 @@ export const TimelineChart = ({ deployments, bounds, campaignName }) => {
<Disclosure open={!!selectedDeployment}>
{geojsonError && (
<MapErrorMsg>
<ExclamationIcon color={colors.darkTheme.highlight} />
<h4>It was not possible to load the map data for this campaign.</h4>
<CaseiLogoIcon size="tiny" />
<h4>Flight path data is not yet available for this campaign.</h4>
</MapErrorMsg>
)}
{geojsonLoading && (
Expand Down Expand Up @@ -349,10 +349,13 @@ const MapErrorMsg = styled.div`
padding: 1rem;
margin-bottom: 2rem;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
> h4 {
display: inline;
font-size: 1.2rem;
padding-left: 0.5rem;
margin: 0;
}
`

Expand Down

0 comments on commit a1420ec

Please sign in to comment.