0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2024-12-22 05:33:02 -05:00

more fixes (#196)

This commit is contained in:
Jordi Sala Morales 2024-06-28 08:45:02 +02:00 committed by GitHub
parent 53672d8b43
commit b0670b875e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,8 +12,6 @@ import { TypographyStyle } from '@ui/lib/types/shapes/textShape';
import { translateStyleName, translateStylePath } from '.';
export const translateTextStyle = (figmaStyle: TextStyle): TypographyStyle => {
const name = (figmaStyle.remote ? 'Remote / ' : '') + figmaStyle.name;
return {
name: translateStyleName(figmaStyle),
textStyle: {
@ -28,7 +26,7 @@ export const translateTextStyle = (figmaStyle: TextStyle): TypographyStyle => {
},
typography: {
path: translateStylePath(figmaStyle),
name
name: translateStyleName(figmaStyle)
}
};
};