Skip to content

Commit

Permalink
ref: move numberInput to core (#86472)
Browse files Browse the repository at this point in the history
  • Loading branch information
TkDodo authored Mar 6, 2025
1 parent 3c0f701 commit 31ae1da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {render, screen, userEvent} from 'sentry-test/reactTestingLibrary';

import NumberInput from 'sentry/components/numberInput';
import {NumberInput} from 'sentry/components/core/input/numberInput';

describe('NumberInput', function () {
it('renders input', function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ function BaseNumberInput(
);
}

const NumberInput = forwardRef(BaseNumberInput);

export default NumberInput;
export const NumberInput = forwardRef(BaseNumberInput);

const StepWrap = styled('div')<{size?: FormSize}>`
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion static/app/views/alerts/rules/issue/ruleNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import {openModal} from 'sentry/actionCreators/modal';
import {Button, LinkButton} from 'sentry/components/button';
import {Alert} from 'sentry/components/core/alert';
import {Input} from 'sentry/components/core/input';
import {NumberInput} from 'sentry/components/core/input/numberInput';
import SelectControl from 'sentry/components/forms/controls/selectControl';
import ExternalLink from 'sentry/components/links/externalLink';
import NumberInput from 'sentry/components/numberInput';
import {releaseHealth} from 'sentry/data/platformCategories';
import {IconDelete, IconSettings} from 'sentry/icons';
import {t, tct} from 'sentry/locale';
Expand Down

0 comments on commit 31ae1da

Please sign in to comment.