Skip to content
Snippets Groups Projects
Commit 00220e54 authored by Marek Veselý's avatar Marek Veselý
Browse files

Merge branch '291-improve-sending-custom-injects' into 'master'

Resolve "improve sending custom injects"

Closes #291

See merge request inject/frontend!219
parents 88651671 4bb02381
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,8 @@ const gridItem = css` ...@@ -15,6 +15,8 @@ const gridItem = css`
font-size: 16px; font-size: 16px;
` `
const REPEAT_MAX = 10
interface HeaderAreaProps { interface HeaderAreaProps {
repeat: number | undefined repeat: number | undefined
setRepeat: Dispatch<SetStateAction<number | undefined>> setRepeat: Dispatch<SetStateAction<number | undefined>>
...@@ -27,10 +29,12 @@ const HeaderArea: FC<HeaderAreaProps> = ({ repeat, setRepeat }) => ( ...@@ -27,10 +29,12 @@ const HeaderArea: FC<HeaderAreaProps> = ({ repeat, setRepeat }) => (
fill fill
placeholder='Extra Copies' placeholder='Extra Copies'
min={0} min={0}
max={10} max={REPEAT_MAX}
value={repeat} value={repeat}
onValueChange={value => { onValueChange={value => {
setRepeat(value) if (value <= REPEAT_MAX && value >= 0) {
setRepeat(value)
}
}} }}
/> />
</div> </div>
......
...@@ -36,6 +36,8 @@ const InstructorInject: FC<InstructorInjectProps> = ({ ...@@ -36,6 +36,8 @@ const InstructorInject: FC<InstructorInjectProps> = ({
onClose={() => { onClose={() => {
setIsComposerOpen(false) setIsComposerOpen(false)
}} }}
title='Send an inject into the INFO channel of the selected team'
icon='annotation'
> >
<DialogBody> <DialogBody>
<InjectForm <InjectForm
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment