Added ActionDialog for dialog with two default action buttons
This commit is contained in:
parent
a3bb9247f6
commit
adcc541cc2
4 changed files with 11 additions and 6 deletions
|
@ -446,5 +446,7 @@
|
||||||
"tutorial_tip.out": "Opt out of these tips.",
|
"tutorial_tip.out": "Opt out of these tips.",
|
||||||
"tutorial_tip.seen": "Seen this before?",
|
"tutorial_tip.seen": "Seen this before?",
|
||||||
"statusProperty.configDialog.title": "Edit Statuses",
|
"statusProperty.configDialog.title": "Edit Statuses",
|
||||||
"statusProperty.configDialog.subTitle": "Categorise your status values to represent what each value represents"
|
"statusProperty.configDialog.subTitle": "Categorise your status values to represent what each value represents",
|
||||||
|
"generic.cancel": "Cancel",
|
||||||
|
"generic.save": "Save"
|
||||||
}
|
}
|
|
@ -4,7 +4,6 @@
|
||||||
width: 832px;
|
width: 832px;
|
||||||
height: 540px;
|
height: 540px;
|
||||||
padding: 0 32px;
|
padding: 0 32px;
|
||||||
padding-bottom: 24px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@ import InfoIcon from '../../../widgets/icons/info'
|
||||||
import Dialog from '../../dialog'
|
import Dialog from '../../dialog'
|
||||||
|
|
||||||
import './categoryConfigrationDialog.scss'
|
import './categoryConfigrationDialog.scss'
|
||||||
|
import ActionDialog from '../../actionDialog/actionDialog'
|
||||||
|
|
||||||
export type StatusCategory = {
|
export type StatusCategory = {
|
||||||
id: string
|
id: string
|
||||||
|
@ -31,7 +32,7 @@ const StatusPropertyConfigrationDialog = (props: Props): JSX.Element => {
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
return (
|
return (
|
||||||
<Dialog
|
<ActionDialog
|
||||||
onClose={props.onClose}
|
onClose={props.onClose}
|
||||||
title={title}
|
title={title}
|
||||||
className='StatusPropertyConfigrationDialog'
|
className='StatusPropertyConfigrationDialog'
|
||||||
|
@ -62,7 +63,7 @@ const StatusPropertyConfigrationDialog = (props: Props): JSX.Element => {
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
</Dialog>
|
</ActionDialog>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,9 @@ import React from 'react'
|
||||||
import './button.scss'
|
import './button.scss'
|
||||||
import {Utils} from '../../utils'
|
import {Utils} from '../../utils'
|
||||||
|
|
||||||
|
export type ButtonSize = 'xsmall' | 'small' | 'medium' | 'large'
|
||||||
|
export type Emphasis = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'gray' | 'danger' | 'default' | 'link'
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void
|
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void
|
||||||
onMouseOver?: (e: React.MouseEvent<HTMLButtonElement>) => void
|
onMouseOver?: (e: React.MouseEvent<HTMLButtonElement>) => void
|
||||||
|
@ -16,8 +19,8 @@ type Props = {
|
||||||
filled?: boolean
|
filled?: boolean
|
||||||
active?: boolean
|
active?: boolean
|
||||||
submit?: boolean
|
submit?: boolean
|
||||||
emphasis?: string
|
emphasis?: Emphasis
|
||||||
size?: string
|
size?: ButtonSize
|
||||||
danger?: boolean
|
danger?: boolean
|
||||||
className?: string
|
className?: string
|
||||||
rightIcon?: boolean
|
rightIcon?: boolean
|
||||||
|
|
Loading…
Reference in a new issue