Skip to content

Commit

Permalink
🛠 Refactor: Ex - Rename ContextMenuCard
Browse files Browse the repository at this point in the history
TODO:2023-03-04-04-39-44 - Import + Re–write Example Components

Summary:
* Rename files and symbols related to  `ContextMenuCard`.
* Rename `example/src/components/ContextMenuCard` to `ExampleCard`.
  • Loading branch information
dominicstop committed Mar 3, 2023
1 parent a633005 commit 6a61bcf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions example/src/components/ContextMenuButtonCard.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

import * as React from 'react';

import { ContextMenuCard, ContextMenuCardProps, ColorConfig } from './ContextMenuCard';
import { ExampleCard, ExampleCardProps, ColorConfig } from './ExampleCard';

import * as Colors from '../constants/Colors';
import { StyleSheet } from 'react-native';
Expand All @@ -17,9 +16,9 @@ const colorConfig: ColorConfig = {
bodyDescriptionLabelColor: Colors.ORANGE[900],
};

export function ContextMenuButtonCard(props: ContextMenuCardProps){
export function ContextMenuButtonCard(props: ExampleCardProps){
return (
<ContextMenuCard
<ExampleCard
{...props}
extraContentContainerStyle={styles.extraContentContainer}
colorConfig={colorConfig}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,4 @@ const styles = StyleSheet.create({
bodyDescriptionSubText: {
marginTop: 10,
},
});
});
2 changes: 1 addition & 1 deletion example/src/examples/DebugControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useNavigation } from '@react-navigation/native';

import type { ContextMenuExampleProps } from './SharedExampleTypes';

import { ContextMenuCard } from '../components/ContextMenuCard';
import { ContextMenuCard } from '../components/ExampleCard';
import { CardButton } from '../components/Card/CardButton';
import { SHARED_ENV } from '../constants/SharedEnv';

Expand Down

0 comments on commit 6a61bcf

Please sign in to comment.