Skip to content

Commit

Permalink
context export
Browse files Browse the repository at this point in the history
  • Loading branch information
clefayomide committed Feb 28, 2023
1 parent c52a6fb commit f558583
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/component/Converter/Converter.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useContext, useState } from 'react';
import { AppState } from '../../context/AppState';
// import { AppState } from '../../context/AppState';
import { Currency } from '../Currency';
import Button from '../form/Button';
import AppContext from '../../context/app_context';
Expand Down Expand Up @@ -46,7 +46,7 @@ export const Converter = () => {
};

return (
<AppState>
// <AppState>
<div className="w-fit">
<Currency
title={'You send'}
Expand All @@ -65,6 +65,6 @@ export const Converter = () => {
/>
<Button title={'Convert'} on_click={handle_conversion} />
</div>
</AppState>
// </AppState>
);
};
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from "./component/Converter/Converter"
export * from "./context/AppState"

0 comments on commit f558583

Please sign in to comment.