Skip to content

Commit

Permalink
format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sdevalapurkar committed May 3, 2021
1 parent 6e84974 commit b4d3195
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion app/src/features/projects/view/ProjectSurveysListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ const ProjectSurveysListPage: React.FC<IProjectSurveysListPageProps> = (props) =
<Container maxWidth="xl">
<Box mb={5} display="flex" alignItems="center" justifyContent="space-between">
<Typography variant="h1">Surveys</Typography>
<Button variant="outlined" color="primary" onClick={() => navigateToCreateSurveyPage(projectForViewData.id)}>
<Button
variant="outlined"
color="primary"
onClick={() => navigateToCreateSurveyPage(projectForViewData.id)}>
Create Survey
</Button>
</Box>
Expand Down
4 changes: 2 additions & 2 deletions app/src/features/surveys/CreateSurveyPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ const CreateSurveyPage = () => {
const [codes, setCodes] = useState<IGetAllCodeSetsResponse>();

const history = useHistory();

const handleCancel = () => {
history.push(`/projects/${projectWithDetails?.id}/surveys`);
};

useEffect(() => {
const getCodes = async () => {
const codesResponse = await biohubApi.codes.getAllCodeSets();
Expand Down

0 comments on commit b4d3195

Please sign in to comment.