Skip to content

Commit

Permalink
issue (#961)
Browse files Browse the repository at this point in the history
  • Loading branch information
tfhuhtal committed Jul 2, 2024
1 parent dda99e6 commit 24c9386
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/components/Generic/Generic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
}
.circle-big-gray {
@include answer-circle-big-basics;
background: $background-gray
background: rgb(128,128,128);
}

.circle-big-green-selected {
Expand All @@ -286,7 +286,7 @@
}
.circle-big-gray-selected {
@include selected-answer-circle-big-basics;
background: $background-gray
background: rgb(128,128,128);
}


Expand Down
7 changes: 6 additions & 1 deletion client/components/Generic/MetaEntity.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import React from 'react'
import { useSelector } from 'react-redux'
import { Divider } from 'semantic-ui-react'
import { colors } from 'Utilities/common'
import Textarea from './Textarea'
import MetaTrafficLights from './MetaTrafficLights'
import './Generic.scss'

const MetaEntity = ({ id, label, description, required, noColor, number, form, kludge }) => {
const fieldName = `${id}_light`
const value = useSelector(({ form }) => form.data[fieldName])
const bool = value !== 'gray'

return (
<div className="form-entity-area">
<Divider />
Expand All @@ -18,7 +23,7 @@ const MetaEntity = ({ id, label, description, required, noColor, number, form, k
</div>
{!noColor && <MetaTrafficLights id={id} form={form} />}
</div>
<Textarea id={id} label={description} form={form} kludge={kludge} />
{bool && <Textarea id={id} label={description} form={form} kludge={kludge} />}
<Textarea id={`${id}_comment`} label="Kommentit" form={form} kludge={kludge} />
</div>
)
Expand Down

0 comments on commit 24c9386

Please sign in to comment.