Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 0 additions & 3 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import ProductsScreen from './screens/ProductsScreen';
import ProductDetailScreen from './screens/ProductDetailScreen';
import EntitlementsScreen from './screens/EntitlementsScreen';
import EntitlementDetailScreen from './screens/EntitlementDetailScreen';
import OfferingsScreen from './screens/OfferingsScreen';
import RemoteConfigsScreen from './screens/RemoteConfigsScreen';
import UserScreen from './screens/UserScreen';
import NoCodesScreen from './screens/NoCodesScreen';
Expand Down Expand Up @@ -113,8 +112,6 @@ const App: React.FC = () => {
) : (
<EntitlementsScreen />
);
case 'offerings':
return <OfferingsScreen />;
case 'remoteConfigs':
return <RemoteConfigsScreen />;
case 'user':
Expand Down
1 change: 0 additions & 1 deletion example/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export { default as SkeletonLoader } from './components/SkeletonLoader';
export { default as MainScreen } from './screens/MainScreen';
export { default as ProductsScreen } from './screens/ProductsScreen';
export { default as EntitlementsScreen } from './screens/EntitlementsScreen';
export { default as OfferingsScreen } from './screens/OfferingsScreen';
export { default as RemoteConfigsScreen } from './screens/RemoteConfigsScreen';
export { default as UserScreen } from './screens/UserScreen';
export { default as NoCodesScreen } from './screens/NoCodesScreen';
Expand Down
1 change: 0 additions & 1 deletion example/src/screens/MainScreen/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const MainScreen: React.FC = () => {
const menuItems = [
{ id: 'products', title: 'Products' },
{ id: 'entitlements', title: 'Entitlements' },
{ id: 'offerings', title: 'Offerings' },
{ id: 'remoteConfigs', title: 'Remote Configs' },
{ id: 'user', title: 'User' },
{ id: 'noCodes', title: 'No-Codes' },
Expand Down
82 changes: 0 additions & 82 deletions example/src/screens/OfferingsScreen/index.tsx

This file was deleted.

113 changes: 0 additions & 113 deletions example/src/screens/OfferingsScreen/styles.ts

This file was deleted.

1 change: 0 additions & 1 deletion example/src/screens/ProductDetailScreen/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ const ProductDetailScreen: React.FC<ProductDetailScreenProps> = ({
{renderField('Store ID', product.storeId)}
{renderField('Base Plan ID', product.basePlanId)}
{renderField('Type', product.type)}
{renderField('Offering ID', product.offeringId)}
</View>

<View style={styles.section}>
Expand Down
6 changes: 0 additions & 6 deletions example/src/store/AppStore.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import {
Offerings,
Product,
RemoteConfigList,
User,
Expand All @@ -10,7 +9,6 @@ import Entitlement from '../../../src/dto/Entitlement';
// Global Store (Redux-like pattern)
export interface AppState {
products: Map<string, Product> | null;
offerings: Offerings | null;
entitlements: Map<string, Entitlement> | null;
remoteConfigs: RemoteConfigList | null;
userInfo: User | null;
Expand All @@ -29,7 +27,6 @@ export interface AppState {

export type AppAction =
| { type: 'SET_PRODUCTS'; payload: Map<string, Product> }
| { type: 'SET_OFFERINGS'; payload: Offerings }
| { type: 'SET_ENTITLEMENTS'; payload: Map<string, Entitlement> }
| { type: 'SET_REMOTE_CONFIGS'; payload: RemoteConfigList }
| { type: 'SET_USER_INFO'; payload: User }
Expand All @@ -48,7 +45,6 @@ export type AppAction =

export const initialState: AppState = {
products: null,
offerings: null,
entitlements: null,
remoteConfigs: null,
userInfo: null,
Expand All @@ -65,8 +61,6 @@ export function appReducer(state: AppState, action: AppAction): AppState {
switch (action.type) {
case 'SET_PRODUCTS':
return { ...state, products: action.payload };
case 'SET_OFFERINGS':
return { ...state, offerings: action.payload };
case 'SET_ENTITLEMENTS':
return { ...state, entitlements: action.payload };
case 'SET_REMOTE_CONFIGS':
Expand Down
Loading