Skip to content

Commit

Permalink
fix dependency cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
tcaiger committed Dec 3, 2024
1 parent b4d0dff commit 6507d69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/datatrak-web/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export { InputHelperText } from './InputHelperText';
export { Modal } from './Modal';
export { PageTitleBar } from './PageTitleBar';
export { SmallModal } from './SmallModal';
export { SlideTransition } from './SlideTransition';
export { TextInput } from './TextInput';
export { Tile, LoadingTile } from './Tile';
export { Toast } from './Toast';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import { Paper } from '@material-ui/core';
import { ProjectSelectForm } from '@tupaia/ui-components';
import { RequestProjectAccess } from '../../features';
import { useCurrentUserContext, useEditUser, useProjects } from '../../api';
import { Modal, SlideTransition } from '../../components';
import { Modal } from '../../components/Modal';
import { SlideTransition } from '../../components/SlideTransition';

const StyledModal = styled(Modal)`
// The mobile styles are specific to the project select modal in datatrak-web so they are included here
Expand All @@ -22,10 +23,10 @@ const StyledModal = styled(Modal)`
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
block-size: 100%;
> div {
max-height: 100%;
max-block-size: 100%;
}
}
}
Expand All @@ -52,7 +53,7 @@ const StyledModal = styled(Modal)`
padding-block: 0.3rem;
> li {
border-bottom: 1px solid ${({ theme }) => theme.palette.divider};
border-block-end: 1px solid ${({ theme }) => theme.palette.divider};
.MuiButtonBase-root {
font-size: 0.75rem;
Expand Down

0 comments on commit 6507d69

Please sign in to comment.