Skip to content

Commit f9ae768

Browse files
committed
feat(manager-dashboard): add banner to alert that street projects are web only
1 parent c4f43c9 commit f9ae768

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

manager-dashboard/app/views/NewProject/index.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ import Button from '#components/Button';
5050
import NonFieldError from '#components/NonFieldError';
5151
import AnimatedSwipeIcon from '#components/AnimatedSwipeIcon';
5252
import ExpandableContainer from '#components/ExpandableContainer';
53+
import AlertBanner from '#components/AlertBanner';
5354
import {
5455
valueSelector,
5556
labelSelector,
@@ -465,6 +466,16 @@ function NewProject(props: Props) {
465466
error={error?.projectType}
466467
disabled={submissionPending || testPending}
467468
/>
469+
{value.projectType === PROJECT_TYPE_STREET && (
470+
<AlertBanner title="MapSwipe Web only">
471+
<div className={styles.warningContainer}>
472+
<div className={styles.warningItem}>
473+
Projects of this type are currently
474+
only visible in the web app.
475+
</div>
476+
</div>
477+
</AlertBanner>
478+
)}
468479
<BasicProjectInfoForm
469480
value={value}
470481
setValue={setValue}

manager-dashboard/app/views/NewProject/styles.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,18 @@
7575
flex-shrink: 0;
7676
justify-content: center;
7777
}
78+
79+
.warning-container {
80+
display: flex;
81+
flex-direction: column;
82+
gap: var(--spacing-extra-small);
83+
84+
.warning-item {
85+
display: flex;
86+
gap: var(--spacing-small);
87+
align-items: flex-start;
88+
}
89+
}
7890
}
7991

8092
.submission-status-modal {

0 commit comments

Comments
 (0)