Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding a small PR to see if he project is still being monitored #46

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
12 changes: 12 additions & 0 deletions examples/components/input.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
interface Props {
className: string
disabled?: boolean;
required?: boolean
onKeyUp: any
}

export default function Input(props: Props) {
return <input type='text' className={props.className} disabled={props.disabled ?? false} required={props.required ?? true} onKeyUp={props.onKeyUp}/>
//TODOs: Add Custom Errors responses.
}

2 changes: 1 addition & 1 deletion examples/components/subscribed-symbol.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useContext, useEffect, useState } from 'react'
import _ from 'lodash'
import { AppContext } from '../contexts/context'
import { MarketDataSubscriptionType } from "tastytrade-api"
import { MarketDataSubscriptionType } from "@tastytrade/api"

export default function SubscribedSymbol(props: any) {
const [bidPrice, setBidPrice] = useState(NaN)
Expand Down
1 change: 1 addition & 0 deletions examples/components/vertical-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default function VerticalNavBar() {
<VerticalNavLink href = "/symbol-search" title = "Symbol Search"/>
<VerticalNavLink href = "/quote-streamer" title = "Quote Data"/>
<VerticalNavLink href = "/account-streamer" title = "Account Data"/>
<VerticalNavLink href = "/trade" title = "Trade Tab"/>
</ul>
</nav>
)
Expand Down
2 changes: 1 addition & 1 deletion examples/contexts/context.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// src/context/state.ts
import { createContext } from 'react';
import TastytradeClient, { LogLevel, MarketDataStreamer } from "tastytrade-api"
import TastytradeClient, { LogLevel, MarketDataStreamer } from "@tastytrade/api"
import { makeAutoObservable } from 'mobx';
import _ from 'lodash'

Expand Down
Loading