diff --git a/src/components/Switch.jsx b/src/components/Switch.jsx new file mode 100644 index 0000000..022487b --- /dev/null +++ b/src/components/Switch.jsx @@ -0,0 +1,15 @@ +// @flow +import React from 'react'; +import classnames from 'classnames'; + +type Props = { + active: Boolean, + + onPress: Function, +} +export const Switch = ({ active, onPress = () => {} }: Props) => ( +
+); diff --git a/src/components/dialogs/SaveDialog.jsx b/src/components/dialogs/SaveDialog.jsx index 2711347..1fc6c10 100644 --- a/src/components/dialogs/SaveDialog.jsx +++ b/src/components/dialogs/SaveDialog.jsx @@ -4,6 +4,9 @@ import { toTranslit } from '$utils/format'; import { TIPS } from '$constants/tips'; import { MODES } from '$constants/modes'; import { Icon } from '$components/panels/Icon'; +import { Switch } from '$components/Switch'; + +import classnames from 'classnames'; type Props = { address: String, // initial? @@ -22,6 +25,7 @@ type Props = { type State = { address: String, title: String, + public: Boolean, }; export class SaveDialog extends React.Component