radgrad/radgrad2

View on GitHub
app/imports/ui/components/shared/manage/opportunity/AddOpportunityTab.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import { Tab } from 'semantic-ui-react';
import { AcademicTerm, BaseProfile, Interest, OpportunityType } from '../../../../../typings/radgrad';
import AddOpportunityForm from '../../../admin/datamodel/opportunity/AddOpportunityForm';

interface AddOpportunityTabProps {
  sponsors: BaseProfile[];
  terms: AcademicTerm[];
  interests: Interest[];
  opportunityTypes: OpportunityType[];
}

const AddOpportunityTab: React.FC<AddOpportunityTabProps> = ({ sponsors, terms, interests, opportunityTypes }) => (
  <Tab.Pane>
    <AddOpportunityForm sponsors={sponsors} terms={terms} interests={interests} opportunityTypes={opportunityTypes} />
  </Tab.Pane>
);

export default AddOpportunityTab;