Skip to content

Commit

Permalink
[PAY-1733] Remove Gated Prompt Modal (#3948)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyrombo committed Aug 26, 2023
1 parent a522294 commit b39cb5d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 180 deletions.
18 changes: 0 additions & 18 deletions packages/web/src/components/data-entry/FormTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import Input from 'components/data-entry/Input'
import LabeledInput from 'components/data-entry/LabeledInput'
import TagInput from 'components/data-entry/TagInput'
import TextArea from 'components/data-entry/TextArea'
import { GatedContentUploadPromptModal } from 'components/gated-content-upload-prompt-modal/GatedContentUploadPromptModal'
import Dropdown from 'components/navigation/Dropdown'
import ConnectedRemixSettingsModal from 'components/remix-settings-modal/ConnectedRemixSettingsModal'
import { RemixSettingsModalTrigger } from 'components/remix-settings-modal/RemixSettingsModalTrigger'
Expand Down Expand Up @@ -469,19 +468,6 @@ const AdvancedForm = (props) => {

return (
<>
{/*
Render the gated content upload prompt component which is responsible
for whether or its content will modal will be displayed.
*/}
{props.allowPromptModal ? (
<GatedContentUploadPromptModal
onSubmit={() => {
props.toggleAdvanced()
// TODO: re-enable this before merge
// setIsAvailabilityModalOpen(true)
}}
/>
) : null}
<div
className={cn(styles.advanced, {
[styles.show]: props.advancedShow,
Expand Down Expand Up @@ -869,9 +855,6 @@ FormTile.propTypes = {
/** Whether we are in the track upload flow */
isUpload: PropTypes.bool,

/** Whether we allow showing the gated track upload prompt modal */
allowPromptModal: PropTypes.bool,

/** Initial form for in case we are in the edit track modal */
initialForm: PropTypes.object,

Expand Down Expand Up @@ -923,7 +906,6 @@ FormTile.defaultProps = {
onChangeOrder: () => {},
onChangeField: () => {},
isUpload: true,
allowPromptModal: false,
initialForm: {},
showUnlistedToggle: true,
showHideTrackSectionInModal: true,
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit b39cb5d

Please sign in to comment.