mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 13:43:03 -05:00
53672d8b43
* Fix style path * add changelog
9 lines
222 B
TypeScript
9 lines
222 B
TypeScript
export const translateStyleName = (figmaStyle: BaseStyle): string => {
|
|
const splitName = figmaStyle.name.split('/');
|
|
|
|
if (splitName.length > 0) {
|
|
return splitName.pop() as string;
|
|
}
|
|
|
|
return figmaStyle.name;
|
|
};
|