Skip to content

Commit

Permalink
Use output suffix in StringBuffer method name (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliefoxtwo authored Oct 5, 2023
1 parent c685699 commit ca349d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface StringBufferSnippetProps {
export default class StringBufferSnippet extends Component<StringBufferSnippetProps> {
public render(): ReactNode {
const { controlIdentifier, output } = this.props;
const methodName = Snippet.snakeToCamelCase(`${controlIdentifier}_Buffer`);
const methodName = Snippet.snakeToCamelCase(`${controlIdentifier}${output.suffix}_Buffer`);
const callbackMethodName = Snippet.snakeToCamelCase(`on_${controlIdentifier}_change`);

return (
Expand Down

0 comments on commit ca349d7

Please sign in to comment.