-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #332 from aehrc/feature/embedded-view
Fix/Dashboard table enhancements
- Loading branch information
Showing
72 changed files
with
1,297 additions
and
1,139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
apps/smart-forms-app/src/components/Button/UnlaunchedButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Button } from '@mui/material'; | ||
import { useNavigate } from 'react-router-dom'; | ||
|
||
function UnlaunchedButton() { | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<Button | ||
variant="contained" | ||
color="warning" | ||
sx={{ mt: 6 }} | ||
onClick={() => { | ||
navigate('/dashboard/questionnaires'); | ||
}} | ||
data-test="button-unlaunched-state"> | ||
Proceed in unlaunched state | ||
</Button> | ||
); | ||
} | ||
|
||
export default UnlaunchedButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
apps/smart-forms-app/src/components/Header/HeaderIcons.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright 2023 Commonwealth Scientific and Industrial Research | ||
* Organisation (CSIRO) ABN 41 687 119 230. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import DesktopHeaderIcons from './DesktopHeaderIcons.tsx'; | ||
import MobileHeaderIcons from './MobileHeaderIcons.tsx'; | ||
import { Stack } from '@mui/material'; | ||
import { useTheme } from '@mui/material/styles'; | ||
import useResponsive from '../../hooks/useResponsive.ts'; | ||
|
||
function HeaderIcons() { | ||
const theme = useTheme(); | ||
const isDesktop = useResponsive('up', 'lg'); | ||
|
||
return ( | ||
<Stack direction="row" alignItems="center" sx={{ color: theme.palette.grey['700'] }}> | ||
{isDesktop ? <DesktopHeaderIcons /> : <MobileHeaderIcons />} | ||
</Stack> | ||
); | ||
} | ||
|
||
export default HeaderIcons; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 0 additions & 63 deletions
63
apps/smart-forms-app/src/components/Header/MobileHeaderWithQuestionnaire.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.