Skip to content

Commit d6f2506

Browse files
fix eslint error
Signed-off-by: Rajesh-Nagarajan-11 <rajeshnagarajan36@gmail.com>
1 parent 156731c commit d6f2506

5 files changed

Lines changed: 58 additions & 58 deletions

File tree

src/components/SistentNavigation/content.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ export const content = [
6868
{ id: 48, link: "/projects/sistent/components/popper/guidance", text: "Popper" },
6969
{ id: 49, link: "/projects/sistent/components/popper/code", text: "Popper" },
7070

71-
{id: 50,link: "/projects/sistent/components/radiogroup",text: "RadioGroup"},
72-
{id: 51,link: "/projects/sistent/components/radiogroup/guidance",text: "RadioGroup"},
73-
{id: 52,link: "/projects/sistent/components/radiogroup/code",text: "RadioGroup"},
71+
{ id: 50,link: "/projects/sistent/components/radiogroup",text: "RadioGroup" },
72+
{ id: 51,link: "/projects/sistent/components/radiogroup/guidance",text: "RadioGroup" },
73+
{ id: 52,link: "/projects/sistent/components/radiogroup/code",text: "RadioGroup" },
7474

7575
{ id: 53, link: "/projects/sistent/components/select", text: "Select" },
7676
{ id: 54, link: "/projects/sistent/components/select/guidance", text: "Select" },

src/sections/Projects/Sistent/components/content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ const componentsData = [
188188
url: "/projects/sistent/components/toolbar",
189189
src: "/toolbar",
190190
},
191-
{
191+
{
192192
"id": 25,
193193
"name": "RadioGroup",
194194
"description": "Sistent offers a well-structured RadioGroup component that allows users to select one option from a set.",

src/sections/Projects/Sistent/components/radiogroup/code.js

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const SistentRadioGroup = () => {
4141

4242
const [value, setValue] = React.useState("Layer5");
4343
const handleChange = (event) => setValue(event.target.value);
44-
44+
4545
const [selectedDisabledOption, setSelectedDisabledOption] = React.useState("Layer5");
4646
const handleDisabledChange = (event) => setSelectedDisabledOption(event.target.value);
4747

@@ -125,7 +125,7 @@ const SistentRadioGroup = () => {
125125
</div>
126126
<CodeBlock name="radiogroup-example" code={codes[0]} />
127127
</div>
128-
128+
129129
<a id="Disabled RadioGroup">
130130
<h2>Disabled Options</h2>
131131
</a>
@@ -143,7 +143,7 @@ const SistentRadioGroup = () => {
143143
</div>
144144
<CodeBlock name="radiogroup-disabled" code={codes[1]} />
145145
</div>
146-
146+
147147
<a id="Row RadioGroup">
148148
<h2>Row Layout</h2>
149149
</a>
@@ -161,7 +161,7 @@ const SistentRadioGroup = () => {
161161
</div>
162162
<CodeBlock name="radiogroup-row" code={codes[2]} />
163163
</div>
164-
164+
165165
<a id="LabelPlacement RadioGroup">
166166
<h2>Label Placement</h2>
167167
</a>
@@ -170,30 +170,30 @@ const SistentRadioGroup = () => {
170170
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
171171
<Container maxWidth="sm">
172172
<RadioGroup row value={selectedLabelOption} onChange={handleLabelChange}>
173-
<FormControlLabel
174-
value="end"
175-
control={<Radio />}
176-
label="End (Default)"
177-
labelPlacement="end"
173+
<FormControlLabel
174+
value="end"
175+
control={<Radio />}
176+
label="End (Default)"
177+
labelPlacement="end"
178178
/>
179-
<FormControlLabel
180-
value="top"
181-
control={<Radio />}
182-
label="Top"
183-
labelPlacement="top"
179+
<FormControlLabel
180+
value="top"
181+
control={<Radio />}
182+
label="Top"
183+
labelPlacement="top"
184+
/>
185+
<FormControlLabel
186+
value="bottom"
187+
control={<Radio />}
188+
label="Bottom"
189+
labelPlacement="bottom"
184190
/>
185-
<FormControlLabel
186-
value="bottom"
187-
control={<Radio />}
188-
label="Bottom"
189-
labelPlacement="bottom"
191+
<FormControlLabel
192+
value="start"
193+
control={<Radio />}
194+
label="Start"
195+
labelPlacement="start"
190196
/>
191-
<FormControlLabel
192-
value="start"
193-
control={<Radio />}
194-
label="Start"
195-
labelPlacement="start"
196-
/>
197197
</RadioGroup>
198198
</Container>
199199
</SistentThemeProvider>

src/sections/Projects/Sistent/components/radiogroup/guidance.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,13 @@ const RadioGroupGuidance = () => {
198198
<a id="BestPractices">
199199
<h2>Best Practices</h2>
200200
</a>
201-
<ul>
202-
<li><strong>Single-choice only:</strong> Use RadioGroup when users must select just one option from a set. For multiple selections, use checkboxes instead.</li>
203-
<li><strong>Clear labeling:</strong> Provide short, descriptive labels for each radio option to help users understand their choices quickly.</li>
204-
<li><strong>Logical grouping:</strong> Visually and semantically group related radio options together to improve clarity and accessibility.</li>
205-
<li><strong>Default selection:</strong> Set a sensible default value to guide users and streamline their decision-making process.</li>
206-
<li><strong>Horizontal layout:</strong> Use the <code>row</code> prop for horizontal alignment when space is limited or when options are closely related.</li>
207-
</ul>
201+
<ul>
202+
<li><strong>Single-choice only:</strong> Use RadioGroup when users must select just one option from a set. For multiple selections, use checkboxes instead.</li>
203+
<li><strong>Clear labeling:</strong> Provide short, descriptive labels for each radio option to help users understand their choices quickly.</li>
204+
<li><strong>Logical grouping:</strong> Visually and semantically group related radio options together to improve clarity and accessibility.</li>
205+
<li><strong>Default selection:</strong> Set a sensible default value to guide users and streamline their decision-making process.</li>
206+
<li><strong>Horizontal layout:</strong> Use the <code>row</code> prop for horizontal alignment when space is limited or when options are closely related.</li>
207+
</ul>
208208
</div>
209209
</div>
210210
</SistentLayout>

src/sections/Projects/Sistent/components/radiogroup/index.js

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -119,36 +119,36 @@ const SistentRadioGroup = () => {
119119
</RadioGroup>
120120
</SistentThemeProvider>
121121
</Row>
122-
122+
123123
<h3>Label Placement</h3>
124124
<p>You can change the placement of the label with the <code>labelPlacement</code> prop.</p>
125125
<Row $Hcenter className="image-container">
126126
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
127127
<RadioGroup row value={selectedLabelOption} onChange={handleLabelChange}>
128-
<FormControlLabel
129-
value="end"
130-
control={<Radio />}
131-
label="End (Default)"
132-
labelPlacement="end"
128+
<FormControlLabel
129+
value="end"
130+
control={<Radio />}
131+
label="End (Default)"
132+
labelPlacement="end"
133+
/>
134+
<FormControlLabel
135+
value="top"
136+
control={<Radio />}
137+
label="Top"
138+
labelPlacement="top"
133139
/>
134-
<FormControlLabel
135-
value="top"
136-
control={<Radio />}
137-
label="Top"
138-
labelPlacement="top"
140+
<FormControlLabel
141+
value="bottom"
142+
control={<Radio />}
143+
label="Bottom"
144+
labelPlacement="bottom"
139145
/>
140-
<FormControlLabel
141-
value="bottom"
142-
control={<Radio />}
143-
label="Bottom"
144-
labelPlacement="bottom"
146+
<FormControlLabel
147+
value="start"
148+
control={<Radio />}
149+
label="Start"
150+
labelPlacement="start"
145151
/>
146-
<FormControlLabel
147-
value="start"
148-
control={<Radio />}
149-
label="Start"
150-
labelPlacement="start"
151-
/>
152152
</RadioGroup>
153153
</SistentThemeProvider>
154154
</Row>

0 commit comments

Comments
 (0)