Skip to content

Commit

Permalink
secun to secondary button
Browse files Browse the repository at this point in the history
  • Loading branch information
friedrecursion committed May 19, 2024
1 parent 718d0ad commit a5ebf4c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react'
import { SecundaryButton } from '../../components/CustomComponents.tsx'
import { SecondaryButton } from '../../components/CustomComponents.tsx'
import Dialog, { DialogProps } from '@mui/material/Dialog'
import DialogActions from '@mui/material/DialogActions'
import DialogContent from '@mui/material/DialogContent'
Expand Down Expand Up @@ -70,9 +70,9 @@ export default function AddRestrictionButton({
</DialogContent>
<DialogActions>
{/* Cancel Button */}
<SecundaryButton id="cancelButton" onClick={handleClose}>
<SecondaryButton id="cancelButton" onClick={handleClose}>
{t('cancel')}
</SecundaryButton>
</SecondaryButton>
</DialogActions>
</Dialog>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Typography from '@mui/material/Typography';
import AppBar from '@mui/material/AppBar'
import Toolbar from '@mui/material/Toolbar'
import CloseIcon from '@mui/icons-material/Close'
import {SecundaryButton} from "../../components/CustomComponents.tsx";
import {SecondaryButton} from "../../components/CustomComponents.tsx";

import { restriction } from './AddChangeAssignmentPage.tsx'

Expand Down Expand Up @@ -176,15 +176,15 @@ export default function RestrictionTemplateUI({
<Typography variant="h6" sx={{ ml: 2, flex: 1 }}>
{templateName}
</Typography>
<SecundaryButton
<SecondaryButton
autoFocus
color="inherit"
onClick={() => handleSubmit(
saveRestrictionTemplate(restrictionCode, paramsState, templateFileName)
)}
>
save
</SecundaryButton>
</SecondaryButton>
</Toolbar>
</AppBar>
<Box aria-label={'Content'} padding={1}>
Expand Down Expand Up @@ -256,7 +256,7 @@ export default function RestrictionTemplateUI({
</ListItem>
))}
</List>
<SecundaryButton onClick={() => handleAddRow(param.variable)} startIcon={<AddCircleOutlineIcon />}>Add Row</SecundaryButton>
<SecondaryButton onClick={() => handleAddRow(param.variable)} startIcon={<AddCircleOutlineIcon />}>Add Row</SecondaryButton>
</div>
)}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ChangeEvent, useState } from 'react'
import {
Button,
Card,
SecundaryButton,
SecondaryButton,
} from '../../components/CustomComponents.tsx'
import Dialog from '@mui/material/Dialog'
import AppBar from '@mui/material/AppBar'
Expand Down Expand Up @@ -450,7 +450,7 @@ export default function RestrictionsDialog({
justifyContent="space-between"
alignItems="center"
>
<SecundaryButton
<SecondaryButton
autoFocus
color="inherit"
onClick={() =>
Expand All @@ -462,15 +462,15 @@ export default function RestrictionsDialog({
} // bestand if maakt niet uit, wordt toch niet gebruikt
>
save as template
</SecundaryButton>
</SecondaryButton>
<Box paddingRight="10px" />
<SecundaryButton
<SecondaryButton
autoFocus
color="inherit"
onClick={() => setPopupOpen(true)}
>
save
</SecundaryButton>
</SecondaryButton>
</Box>
</Box>
</Toolbar>
Expand Down

0 comments on commit a5ebf4c

Please sign in to comment.