Skip to content

Commit

Permalink
chore: Create a story for AnimatedTransactionModal component
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] committed Jun 25, 2024
1 parent b37df95 commit 58852b0
Showing 1 changed file with 44 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import React from 'react';
import { ComponentMeta, ComponentStory } from '@storybook/react-native';
import { View, Text } from 'react-native';
import AnimatedTransactionModal from './index';

const AnimatedTransactionModalMeta: ComponentMeta<
typeof AnimatedTransactionModal
> = {
title: 'UI / AnimatedTransactionModal',
component: AnimatedTransactionModal,
argTypes: {
review: { action: 'review' },
onModeChange: { action: 'onModeChange' },
ready: { control: 'boolean' },
children: { control: 'object' },
},
};

export default AnimatedTransactionModalMeta;

const Default: ComponentStory<typeof AnimatedTransactionModal> = (args) => (
<AnimatedTransactionModal {...args}>
<View>
<Text>Child Component</Text>
</View>
</AnimatedTransactionModal>
);

Default.args = {
review: () => {
// Mock implementation for review function
},
onModeChange: (_mode: string) => {
// Mock implementation for onModeChange function
},
ready: true,
children: (
<View>
<Text>Child Component</Text>
</View>
),
};

export { Default };

0 comments on commit 58852b0

Please sign in to comment.