-
Notifications
You must be signed in to change notification settings - Fork 14
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 #947 from konsulin-id/issue/940
Issue/940
- Loading branch information
Showing
24 changed files
with
1,464 additions
and
64 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
10 changes: 10 additions & 0 deletions
10
packages/smart-forms-renderer/src/components/FormComponents/Button.styles.ts
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,10 @@ | ||
import { styled } from '@mui/material/styles'; | ||
import Fab from '@mui/material/Fab'; | ||
|
||
export const SecondaryFab = styled(Fab)(({ theme }) => ({ | ||
color: '#fff', | ||
background: theme.palette.secondary.main, | ||
'&:hover': { | ||
background: theme.palette.secondary.dark | ||
} | ||
})); |
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
37 changes: 37 additions & 0 deletions
37
packages/smart-forms-renderer/src/components/FormComponents/GroupItem/NextPageButton.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,37 @@ | ||
/* | ||
* Copyright 2024 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 React from 'react'; | ||
import Iconify from '../../Iconify/Iconify'; | ||
import { SecondaryFab } from '../Button.styles'; | ||
|
||
interface NextPageButtonProps { | ||
isDisabled: boolean; | ||
onNextPageClick: () => void; | ||
} | ||
|
||
function NextPageButton(props: NextPageButtonProps) { | ||
const { isDisabled, onNextPageClick } = props; | ||
|
||
return ( | ||
<SecondaryFab size="small" aria-label="next" disabled={isDisabled} onClick={onNextPageClick}> | ||
<Iconify icon="material-symbols:chevron-right-rounded" /> | ||
</SecondaryFab> | ||
); | ||
} | ||
|
||
export default NextPageButton; |
Oops, something went wrong.