Skip to content

Commit

Permalink
Remove undesired useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
jperals committed Sep 22, 2023
1 parent 4ef04ab commit 3c2b45e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pages/dropdown/width.page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import React, { useContext, useEffect, useState } from 'react';
import React, { useContext, useState } from 'react';
import Select, { SelectProps } from '~components/select';
import Multiselect, { MultiselectProps } from '~components/multiselect';
import Autosuggest from '~components/autosuggest';
Expand Down Expand Up @@ -214,7 +214,6 @@ export default function () {
}
};
const onClose = () => setLoading(asyncLoading);
useEffect(onOpen, [asyncLoading]);
return (
<article>
<h1>Dropdown width</h1>
Expand Down

0 comments on commit 3c2b45e

Please sign in to comment.