Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: NanoContractTransactions component [11] #438

Merged
merged 32 commits into from
Jun 12, 2024
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
7d2ad8e
feat: add nano contract screen
alexruzenhack Apr 1, 2024
82141bb
feat: add nano contract components
alexruzenhack May 14, 2024
65743f4
feat: improve NanoContractTransactionsList component
alexruzenhack May 31, 2024
3293444
feat: add init effect on sagas/nanoContract
alexruzenhack May 31, 2024
4d127d3
refactor: rename NanoContractTransactions* to NanoContractDetails*
alexruzenhack May 31, 2024
e4a50fd
lint: comply with rules
alexruzenhack May 31, 2024
3ce08a4
chore: update i18n
alexruzenhack May 31, 2024
90b46c6
refactor: use consumeAsyncIterator from utils
alexruzenhack Jun 1, 2024
3af8f25
chore: update NanoContractDetailsScreen title
alexruzenhack Jun 1, 2024
4da4f91
review: apply suggestions
alexruzenhack Jun 4, 2024
1321805
chore: update i18n
alexruzenhack Jun 4, 2024
dad7df9
refactor: change oneline style to use unicode no-break space
alexruzenhack Jun 5, 2024
ea993a3
review: apply suggestions
alexruzenhack Jun 5, 2024
61fb97d
lint: apply rules
alexruzenhack Jun 5, 2024
0ff1022
refactor: use methods from the store
alexruzenhack Jun 5, 2024
920a461
fix: await async fn
alexruzenhack Jun 6, 2024
d8e1929
refact: extract getAllAddresses as utility fn
alexruzenhack Jun 6, 2024
7d01184
refactor: replace call to "replaceAll" to "no-break space" char in th…
alexruzenhack Jun 6, 2024
2af6825
feat: add "offcard" prop to FeedbackContent component
alexruzenhack Jun 6, 2024
fc355b7
feat: add error and loading feedback content to select addresses modal
alexruzenhack Jun 6, 2024
d9d6e0a
lint: comply with rules
alexruzenhack Jun 6, 2024
c42b2e1
chore: change style name to feedbackContentIcon
alexruzenhack Jun 6, 2024
b1a706d
chore: remove console.log
alexruzenhack Jun 7, 2024
6432c23
refactor: move fetch all wallet addresses to a saga effect on sagas/m…
alexruzenhack Jun 7, 2024
c36592f
chore: update i18n
alexruzenhack Jun 7, 2024
263822e
refactor: offcard style
alexruzenhack Jun 7, 2024
7373f05
review: apply suggestions
alexruzenhack Jun 7, 2024
9ed0a9a
lint: comply with rules
alexruzenhack Jun 7, 2024
e9100f5
chore: update i18n
alexruzenhack Jun 7, 2024
05e098e
review: apply suggestions
alexruzenhack Jun 10, 2024
c6e14bf
refactor: move effects from mixins to wallet
alexruzenhack Jun 12, 2024
cf48e7e
refactor: remove mixins from sagas/index.js
alexruzenhack Jun 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/components/FeedbackContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { COLORS } from '../styles/themes';
* if provided, it renders uppon the title
* @param {Object?} props.action A react component or react element containing a call to action,
* if provided, it renders underneath the content
* @param {boolean} props.offcard Renders a feedback without card style
*
* @example
* <FeedbackContent
Expand All @@ -33,8 +34,8 @@ import { COLORS } from '../styles/themes';
* action={<TryAgain ncId={ncId} />}
* />
*/
export const FeedbackContent = ({ title, message, icon, action }) => (
<View style={[styles.card]}>
export const FeedbackContent = ({ title, message, icon, action, offcard }) => (
<View style={offcard ? styles.offCard : styles.card}>
<View style={styles.content}>
{icon
&& (<View style={styles.icon}>{icon}</View>)}
Expand All @@ -46,6 +47,15 @@ export const FeedbackContent = ({ title, message, icon, action }) => (
);

const styles = StyleSheet.create({
offCard: {
flex: 1,
justifyContent: 'center',
alignSelf: 'stretch',
marginTop: 16,
marginBottom: 45,
backgroundColor: COLORS.backgroundColor,
marginHorizontal: 16,
alexruzenhack marked this conversation as resolved.
Show resolved Hide resolved
},
card: {
flex: 1,
justifyContent: 'center',
Expand Down