MCPcopy Create free account
hub / github.com/Cellule/dndGenerator / getExportFileName

Method getExportFileName

src/UserInput.tsx:141–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139 }
140
141 private getExportFileName() {
142 const name = this.props.npc.description.name.split(" ")[0];
143 const gender = this.props.npc.description.gender;
144 const race = this.props.npc.description.race.split(" ").join("_");
145 const occupation = this.props.npc.description.occupation.split(" ").join("_");
146
147 const filename = name + "_" + gender + "_" + race + "_" + occupation;
148
149 return filename;
150 }
151
152 private downloadTxtFile: React.MouseEventHandler<HTMLButtonElement> = (ev) => {
153 ev.stopPropagation();

Callers 1

UserInputClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected