Skip to content

Commit

Permalink
Remove unused code in OrganizationList.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ameliav committed Mar 15, 2024
1 parent 341a7a9 commit 5c35d7e
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions frontend/src/components/OrganizationList/OrganizationList.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, useCallback } from 'react';
import EditNoteOutlinedIcon from '@mui/icons-material/EditNoteOutlined';
import { Organization } from 'types';
import { Alert, Box, Button, IconButton, Grid } from '@mui/material';
import { Alert, Box, Button, IconButton, Paper } from '@mui/material';
import { DataGrid, GridColDef, GridRenderCellParams } from '@mui/x-data-grid';
import { useHistory } from 'react-router-dom';
import { Add } from '@mui/icons-material';
Expand Down Expand Up @@ -93,12 +93,7 @@ export const OrganizationList: React.FC<{

return (
<Box mb={3}>
<Grid
container
spacing={2}
style={{ margin: '0 auto', marginTop: '1rem', maxWidth: '1000px' }}
></Grid>
<Box sx={{ backgroundColor: 'white' }}>
<Paper elevation={0}>
{organizations?.length === 0 ? (
<Alert severity="warning">No organizations found.</Alert>
) : (
Expand All @@ -111,7 +106,7 @@ export const OrganizationList: React.FC<{
}}
/>
)}
</Box>
</Paper>
<OrganizationForm
onSubmit={onSubmit}
open={dialogOpen}
Expand Down

0 comments on commit 5c35d7e

Please sign in to comment.