Skip to content

Commit

Permalink
fix: TypeScript performance of BarPercent.tsx (#11076)
Browse files Browse the repository at this point in the history
* use correct prop type

* add changeset

---------

Co-authored-by: Banks Nussman <banks@nussman.us>
  • Loading branch information
bnussman-akamai and bnussman authored Oct 9, 2024
1 parent c359ad9 commit 8cd0333
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tech Stories
---

Fix TypeScript Performance of `BarPercent.tsx` ([#11076](https://github.com/linode/manager/pull/11076))
5 changes: 3 additions & 2 deletions packages/manager/src/components/BarPercent/BarPercent.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { styled } from '@mui/material/styles';
import { SxProps } from '@mui/system';
import * as React from 'react';

import { LinearProgress } from 'src/components/LinearProgress';
import { omittedProps } from 'src/utilities/omittedProps';

import type { SxProps, Theme } from '@mui/material/styles';

export interface BarPercentProps {
/** Additional css class to pass to the component */
className?: string;
Expand All @@ -16,7 +17,7 @@ export interface BarPercentProps {
narrow?: boolean;
/** Applies a `border-radius` to the bar. */
rounded?: boolean;
sx?: SxProps;
sx?: SxProps<Theme>;
/** The value of the progress indicator for the determinate and buffer variants. */
value: number;
/** The value for the buffer variant. */
Expand Down

0 comments on commit 8cd0333

Please sign in to comment.