Skip to content

Commit

Permalink
Removed wrapper and interface from presecren-1d
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanesque committed Dec 8, 2020
1 parent dc667e6 commit 2dc4220
Show file tree
Hide file tree
Showing 2 changed files with 483 additions and 70 deletions.
16 changes: 2 additions & 14 deletions src/pages/prescreen-1d.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,7 @@ const Link = styled.a`
overflow-wrap: break-word;
`;

///////
///////

// TODO: Change te interface to a props object
interface Prescreen1dProps {
userState: UserState
userStateActions: UserStateActions
}
const Prescreen1d = ({ userState, userStateActions }: Prescreen1dProps) => {
const Prescreen1d = ({ userState, userStateActions }) => {
const { setExpectedLastEarningYear,
setAwiTrendOrManualPrediction,
setAwiTrendSelection,
Expand Down Expand Up @@ -247,8 +239,4 @@ const Prescreen1d = ({ userState, userStateActions }: Prescreen1dProps) => {
);
};

export default function Prescreen1dWrapper(): JSX.Element {
const userState = useUserState()
const userStateActions = useUserStateActions()
return <Prescreen1d userState={userState} userStateActions={userStateActions} />
}
export default Prescreen1d;
Loading

0 comments on commit 2dc4220

Please sign in to comment.