Un-raw dogged formatting
This commit is contained in:
parent
1ae95fb521
commit
a8172afaeb
|
@ -29,11 +29,10 @@ export const noDescProvided = 'No description provided.';
|
||||||
// Member List generators
|
// Member List generators
|
||||||
const escapeMemberNameForDisplay = (input: memberName): string => memberName.replace(/[_*]/g, '\\$&');
|
const escapeMemberNameForDisplay = (input: memberName): string => memberName.replace(/[_*]/g, '\\$&');
|
||||||
export const generateMemberTitle = (memberList: Array<LFGMember>, maxMembers: number): string => `Members Joined: ${memberList.length}/${maxMembers}`;
|
export const generateMemberTitle = (memberList: Array<LFGMember>, maxMembers: number): string => `Members Joined: ${memberList.length}/${maxMembers}`;
|
||||||
export const generateMemberList = (memberList: Array<LFGMember>): string => memberList.length ? memberList.map((member) =>
|
export const generateMemberList = (memberList: Array<LFGMember>): string =>
|
||||||
`${escapeMemberNameForDisplay(member.name)} - <@${member.id}>`).join('\n') : noMembersStr;
|
memberList.length ? memberList.map((member) => `${escapeMemberNameForDisplay(member.name)} - <@${member.id}>`).join('\n') : noMembersStr;
|
||||||
export const generateAlternateList = (alternateList: Array<LFGMember>): string =>
|
export const generateAlternateList = (alternateList: Array<LFGMember>): string =>
|
||||||
alternateList.length ? alternateList.map((member) =>
|
alternateList.length ? alternateList.map((member) => `${escapeMemberNameForDisplay(member.name)} - <@${member.id}>${member.joined ? ' *' : ''}`).join('\n') : noMembersStr;
|
||||||
`${escapeMemberNameForDisplay(member.name)} - <@${member.id}>${member.joined ? ' *' : ''}`).join('\n') : noMembersStr;
|
|
||||||
|
|
||||||
// Fields for event creation and editing modals
|
// Fields for event creation and editing modals
|
||||||
export const eventTimeId = 'eventTime';
|
export const eventTimeId = 'eventTime';
|
||||||
|
|
Loading…
Reference in New Issue