Skip to content

Commit

Permalink
refactor AddProjectDocument to use common InvestmentName component
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Pentecost authored and Richard Pentecost committed Feb 27, 2024
1 parent 334e3ec commit d12e100
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,13 @@ import {
import urls from '../../../../../lib/urls.js'
import FieldAddAnother from '../../../../components/Form/elements/FieldAddAnother/index.jsx'
import { TASK_ADD_PROJECT_DOCUMENT } from './state.js'
import {
EvidenceTagResource,
InvestmentResource,
} from '../../../../components/Resource/index.jsx'
import { EvidenceTagResource } from '../../../../components/Resource/index.jsx'
import ResourceOptionsField from '../../../../components/Form/elements/ResourceOptionsField/index.jsx'
import { buildProjectBreadcrumbs } from '../../utils.js'
import { FORM_LAYOUT } from '../../../../../common/constants.js'
import FieldFileUpload from '../../../../components/Form/elements/FieldFileUpload/index.jsx'
import { transformEvidenceForApi } from './transformers.js'

const InvestmentName = (props) => (
<InvestmentResource.Inline {...props}>
{(project) => project.name}
</InvestmentResource.Inline>
)
import InvestmentName from '../InvestmentName.jsx'

const AddProjectDocument = () => {
const { projectId } = useParams()
Expand Down

0 comments on commit d12e100

Please sign in to comment.