influxdata / influxdata/clockface

Fix Storybook documentation error

Open Beginner friendly
#858 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46
Forks
18
Avg merge
2d 7h
Merged PRs (30d)
1

Description

In "[Toggle](https://influxdata.github.io/clockface/?path=/story/components-inputs-base--toggle&knob-Label:%20text=I%20Agree%20to%20Terms%20and%20Conditions&knob-Label:%20wrapText=true&knob-Parent%20Width%20(px)=300&knob-checked=true&knob-color=Primary&knob-disabledTitleText=Disabled%20Title%20Text&knob-fill=None&knob-icon=None&knob-id=example_toggle_id&knob-name=Name&knob-size=Small&knob-status=Default&knob-style={}&knob-tabIndex=1&knob-titleText=Title%20Text&knob-type=Radio&knob-value=Value%20Text)", the import line reads:

`import {Toggle, ToggleInputType} from '@influxdata/clockface'`

However, it's actually called "InputToggleType", not ToggleInputType.

Update the Storybook documentation to use the correct name.

![image](https://user-images.githubusercontent.com/1813419/193926960-ec5acfd8-475b-4eaf-92ff-f5509c967da2.png)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the linked Toggle Storybook documentation and locate the import example containing ToggleInputType. Update it to use InputToggleType, then run or preview Storybook to confirm the example displays the correct import name.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, storybook, typescript
Domain
documentation, frontend
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.