Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions packages/ui-truncate-text/src/TruncateText/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ import {
ensureSingleChild
} from '@instructure/ui-react-utils'
import { logError as error } from '@instructure/console'
import { withStyleRework as withStyle } from '@instructure/emotion'
import { withStyle } from '@instructure/emotion'

import generateStyle from './styles'
import generateComponentTheme from './theme'

import truncate from './utils/truncate'
import { allowedProps, TruncateTextState } from './props'
Expand All @@ -46,7 +45,7 @@ import type { TruncateTextProps } from './props'
category: components
---
**/
@withStyle(generateStyle, generateComponentTheme)
@withStyle(generateStyle)
class TruncateText extends Component<TruncateTextProps, TruncateTextState> {
static readonly componentId = 'TruncateText'

Expand Down
4 changes: 2 additions & 2 deletions packages/ui-truncate-text/src/TruncateText/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* SOFTWARE.
*/

import type { TruncateTextTheme } from '@instructure/shared-types'
import type { NewComponentTypes } from '@instructure/ui-themes'
import type { TruncateTextStyle } from './props'

/**
Expand All @@ -36,7 +36,7 @@ import type { TruncateTextStyle } from './props'
* @return {Object} The final style object, which will be used in the component
*/
const generateStyle = (
componentTheme: TruncateTextTheme
componentTheme: NewComponentTypes['TruncateText']
): TruncateTextStyle => {
return {
truncateText: {
Expand Down
46 changes: 0 additions & 46 deletions packages/ui-truncate-text/src/TruncateText/theme.ts

This file was deleted.