Skip to content

Commit

Permalink
Merge pull request #181 from reaviz/range-update
Browse files Browse the repository at this point in the history
Remove unnecessary dependency lodash/range
  • Loading branch information
amcdnl authored May 14, 2024
2 parents 99bbf44 + 0643179 commit 469f4f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/form/Select/SingleSelect.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React, { Fragment, useEffect, useState } from 'react';
import { Fragment, useEffect, useState } from 'react';
import { Select } from './Select';
import { SelectOption } from './SelectOption';
import { SelectMenu } from './SelectMenu';
import range from 'lodash/range';
import { SelectInput, SelectInputChip } from './SelectInput';

export default {
Expand Down Expand Up @@ -77,7 +76,7 @@ export const NoOptions = () => (

export const ManyOptions = () => {
const [value, setValue] = useState<string | null>(null);
const options = range(0, 300);
const options = [...Array(300).keys()];

return (
<div style={{ width: 300 }}>
Expand Down

0 comments on commit 469f4f7

Please sign in to comment.