Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update User list functionality and design in Users.tsx #83

Merged
merged 3 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading
Loading