mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-22 19:08:46 +02:00
fix(Marquee): replace default export with named export
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { FC, CSSProperties } from 'react';
|
||||
import { CSSProperties, FC } from 'react';
|
||||
|
||||
import { findModuleChild } from '../webpack';
|
||||
|
||||
export interface MarqueeProps {
|
||||
@@ -14,7 +15,7 @@ export interface MarqueeProps {
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
const Marquee: FC<MarqueeProps> = findModuleChild((m) => {
|
||||
export const Marquee: FC<MarqueeProps> = findModuleChild((m) => {
|
||||
if (typeof m !== 'object') return;
|
||||
for (const prop in m) {
|
||||
if (m[prop]?.toString && m[prop].toString().includes('.Marquee') && m[prop].toString().includes('--fade-length')) {
|
||||
@@ -23,5 +24,3 @@ const Marquee: FC<MarqueeProps> = findModuleChild((m) => {
|
||||
}
|
||||
return;
|
||||
});
|
||||
|
||||
export default Marquee;
|
||||
|
||||
Reference in New Issue
Block a user