mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Adds debugging information to stories
This commit is contained in:
@@ -7,11 +7,16 @@ export function getClassNamesFor(
|
||||
...modules: Array<string | undefined>
|
||||
): (modifier?: string) => string {
|
||||
return modifier => {
|
||||
const cx = modules.map(parentModule =>
|
||||
parentModule && modifier !== undefined
|
||||
? `${parentModule}${modifier}`
|
||||
: undefined
|
||||
);
|
||||
if (modifier === undefined) {
|
||||
return '';
|
||||
}
|
||||
|
||||
const cx = modules
|
||||
.flatMap(m => (m ? m.split(' ') : undefined))
|
||||
.map(parentModule =>
|
||||
parentModule ? `${parentModule}${modifier}` : undefined
|
||||
);
|
||||
|
||||
return classNames(cx);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user