Skip to content

Commit

Permalink
airtable modal removed (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
mluena authored Sep 21, 2021
1 parent 3be5816 commit 6199e0b
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 421 deletions.
2 changes: 0 additions & 2 deletions .env.default
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_MAX_Z_TILE_STORAGE=
DEPLOYMENT_KEY=
AIRTABLE_API_KEY=
AIRTABLE_USER_ID=
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ Below is a description of each of the keys.
| AWS_BUCKET_NAME | Name of the AWS S3 bucket storing the tiles of the soils layers |
| AWS_ACCESS_KEY_ID | Access key ID of the AWS server storing the tiles of the soils layers |
| AWS_SECRET_ACCESS_KEY | Secret access key of the AWS server storing the tiles of the soils layers |
| AWS_MAX_Z_TILE_STORAGE | Maximum zoom at which tiles generated on-the-fly will be saved in the AWS S3 bucket |
| AIRTABLE_API_KEY | Secret access key for [Airtable](https://airtable.com/) |
| AIRTABLE_USER_ID | Airtable User ID |

| AWS_MAX_Z_TILE_STORAGE | Maximum zoom at which tiles generated on-the-fly will be saved in the AWS S3 bucket

## Deployment

Expand Down
10 changes: 0 additions & 10 deletions components/explore/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import InfoModal from './info-modal';
import InteractiveFeaturePopup from './interactive-feature-popup';
import DrawBoard from './draw-board';
import MapContainer from './map-container';
import UserModal from 'components/user-modal';

import './style.scss';

Expand Down Expand Up @@ -78,14 +77,6 @@ const Explore = ({
const [interactiveFeatures, setInteractiveFeatures] = useState(null);
const [showTour, setShowTour] = useState(false);

// User recruitment modal. This modal should appear just the first time the user
// visits the map section
const [userModalOpen, setUserModalOpen] = useState(isModalShown());

const handleModalClose = () => {
setUserModalOpen(false);
};

// When the user clicks the popup's button that triggers its close, the map also receives the
// event and it opens a new popup right after
// This is a bug of react-map-gl's library
Expand Down Expand Up @@ -232,7 +223,6 @@ const Explore = ({
className="c-explore"
style={isDesktop ? { backgroundColor: BASEMAPS[basemap].backgroundColor } : undefined}
>
<UserModal open={userModalOpen} onClose={handleModalClose} />
{isDesktop && (
<>
{showTour && <Tour />}
Expand Down
2 changes: 1 addition & 1 deletion components/explore/tour/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const ExploreTour = props => {
previousShowTour.current = showTour;
}
}
}, [previousShowTour.current, showTour, props, stepIndex, setOpened, updateShowTour]);
}, [showTour, props, stepIndex, setOpened, updateShowTour]);

const onChange = useCallback(
({ action, type }) => {
Expand Down
95 changes: 0 additions & 95 deletions components/user-modal/component.js

This file was deleted.

22 changes: 0 additions & 22 deletions components/user-modal/content/constants.js

This file was deleted.

140 changes: 0 additions & 140 deletions components/user-modal/content/step1.js

This file was deleted.

78 changes: 0 additions & 78 deletions components/user-modal/content/step2.js

This file was deleted.

1 change: 0 additions & 1 deletion components/user-modal/index.js

This file was deleted.

Loading

0 comments on commit 6199e0b

Please sign in to comment.