Rename save
to onSave
This commit is contained in:
parent
1b9e581e90
commit
ce825fbd66
2 changed files with 4 additions and 4 deletions
|
@ -116,7 +116,7 @@
|
||||||
|
|
||||||
const props = {
|
const props = {
|
||||||
imageURL: this.objectUrl,
|
imageURL: this.objectUrl,
|
||||||
save: () => this.saveFile(),
|
onSave: () => this.saveFile(),
|
||||||
// implicit: `close`
|
// implicit: `close`
|
||||||
};
|
};
|
||||||
this.lightboxView = new Whisper.ReactWrapperView({
|
this.lightboxView = new Whisper.ReactWrapperView({
|
||||||
|
|
|
@ -6,9 +6,9 @@ import React from 'react';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
imageURL?: string;
|
|
||||||
save: () => void;
|
|
||||||
close: () => void;
|
close: () => void;
|
||||||
|
imageURL?: string;
|
||||||
|
onSave: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
const styles = {
|
const styles = {
|
||||||
|
@ -71,7 +71,7 @@ export class Lightbox extends React.Component<Props, {}> {
|
||||||
</div>
|
</div>
|
||||||
<div style={styles.controls}>
|
<div style={styles.controls}>
|
||||||
<IconButton type="close" onClick={this.props.close} />
|
<IconButton type="close" onClick={this.props.close} />
|
||||||
<IconButton type="save" onClick={this.props.save} />
|
<IconButton type="save" onClick={this.props.onSave} />
|
||||||
<IconButton type="previous" />
|
<IconButton type="previous" />
|
||||||
<IconButton type="next" />
|
<IconButton type="next" />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue