Skip to content

Commit

Permalink
ZulipTextButton [nfc]: Add TODO for maybe using react-native-paper.
Browse files Browse the repository at this point in the history
As suggested by Wesley [1].

It'll take a bit more work to set up [2] than I have time for right
now, but this could be a potentially useful follow-up.

[1] zulip#4750 (comment)
[2] zulip#4709 (comment)
  • Loading branch information
chrisbobbe committed May 26, 2021
1 parent 7337a7d commit c8db18b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/common/ZulipTextButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ type Props = $ReadOnly<{|
* >
* > In cards, text buttons help maintain an emphasis on card content.
*/
// TODO: Consider making this a thin wrapper around something like
// react-native-paper's `Button`
// (https://callstack.github.io/react-native-paper/button.html), encoding
// things like project-specific styles and making any sensible adjustments
// to the interface.
export default function ZulipTextButton(props: Props) {
const { variant = 'standard', leftMargin, rightMargin, label, onPress } = props;

Expand Down

0 comments on commit c8db18b

Please sign in to comment.