File tree Expand file tree Collapse file tree
packages/ui-truncate-text/src/TruncateText Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,10 +32,9 @@ import {
3232 ensureSingleChild
3333} from '@instructure/ui-react-utils'
3434import { logError as error } from '@instructure/console'
35- import { withStyleRework as withStyle } from '@instructure/emotion'
35+ import { withStyle } from '@instructure/emotion'
3636
3737import generateStyle from './styles'
38- import generateComponentTheme from './theme'
3938
4039import truncate from './utils/truncate'
4140import { allowedProps , TruncateTextState } from './props'
@@ -46,7 +45,7 @@ import type { TruncateTextProps } from './props'
4645category: components
4746---
4847**/
49- @withStyle ( generateStyle , generateComponentTheme )
48+ @withStyle ( generateStyle )
5049class TruncateText extends Component < TruncateTextProps , TruncateTextState > {
5150 static readonly componentId = 'TruncateText'
5251
Original file line number Diff line number Diff line change 2222 * SOFTWARE.
2323 */
2424
25- import type { TruncateTextTheme } from '@instructure/shared-types '
25+ import type { NewComponentTypes } from '@instructure/ui-themes '
2626import type { TruncateTextStyle } from './props'
2727
2828/**
@@ -36,7 +36,7 @@ import type { TruncateTextStyle } from './props'
3636 * @return {Object } The final style object, which will be used in the component
3737 */
3838const generateStyle = (
39- componentTheme : TruncateTextTheme
39+ componentTheme : NewComponentTypes [ 'TruncateText' ]
4040) : TruncateTextStyle => {
4141 return {
4242 truncateText : {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments