Skip to content

Commit

Permalink
Fix js demo for radios (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-clarke-dluhc committed Jun 20, 2024
1 parent 0094ede commit 9503e08
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uk_gov_dash_components",
"version": "1.26.0",
"version": "1.26.1",
"description": "Dash components for Gov UK",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/demo/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const App = () => {
</ul>
<h2>Radios</h2>
<div>
<Radios id="radios" value={["restrict"]} options={["restrict", "restrict1"]} setProps={setProps} />
<Radios id="radios" value={"restrict"} options={["restrict", "restrict1"]} setProps={setProps} />
</div>
<Accordion id="accordion" accordionHeadings={["charts", 'empty', "data!!!!!"]} defaultSectionsOpen={[false, false, true]} children={[<p>I am a child<br /></p>, <p>I am a empty</p>, <p>I am a hat</p>]} bannerSections={[2, null, 0]}></Accordion>
<Tabs id="tabs" tabHeadings={["Display jitter plots", 'data', "Display time series pl}ots"]} defaultTab={0} children={[<div><p>I am a jitter plot</p></div>, <div><p>I am a jitter plot</p></div>, <div><p>I am a time series plot</p></div>]}></Tabs>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fragments/Radios.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const sanitizeOptions = options => {
* Only one Radio item can be selected at once.
* Each Radio item is rendered as an input with a surrounding label.
*/
const Radios = (props)=>{
const Radios = (props) => {
const {
id,
title,
Expand Down

0 comments on commit 9503e08

Please sign in to comment.