Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: xiaolou86 <[email protected]>
  • Loading branch information
xiaolou86 committed Nov 11, 2023
1 parent 0de6925 commit c3e074f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion rfb/rfb-2-signers-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ export function SignerLedgerFrame({
Reject
</SharedButton>

{signingLedgerState !== "avaiable" ? (
{signingLedgerState !== "available" ? (
<SharedButton
type="primary"
iconSize="large"
Expand Down
2 changes: 1 addition & 1 deletion rfb/rfb-3-multinetwork-dapp-connections.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ We want to change the functionality of our dApp connections to
- We don't use optimistic update to avoid the complexity of rollbacks
- typical data flow:
- initialization: service emits an initialize event > listener in main dispatches action > reducer sets the content of the slice to the payload in the action
- user action: UI dispatches async thunk > async thunk calls service through main OR emits an event (whichever makes sense in given context) > service updates persistance layer > service fires an event > in main there is a listener that dispatches the redux action > reducer updates redux > UI updates
- user action: UI dispatches async thunk > async thunk calls service through main OR emits an event (whichever makes sense in given context) > service updates persistence layer > service fires an event > in main there is a listener that dispatches the redux action > reducer updates redux > UI updates

3. The extension can be thought of as a multinetwork skeleton AND network specific internal dApps.
- Multinetwork skeleton: settings, overview, assets, activity, ...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function NotificationItem(): ReactElement {
<div className="icon_notification" />
<div>
Receive <span className="white">240 ETH</span> from{" "}
<span className="white">0x424..12f3</span> succesful{" "}
<span className="white">0x424..12f3</span> successful{" "}
<span className="time">03:03 on 14 May</span>
</div>
<style jsx>{`
Expand Down
4 changes: 2 additions & 2 deletions ui/pages/DAppConnectRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ export default function DAppConnectRequest(): ReactElement {
}, [])

if (typeof permission === "undefined") {
// something went wrong with permisison request
// something went wrong with permissions request
return <ErrorFallback />
}

if (typeof currentAccountTotal === "undefined") {
// there is no account, let's onbaord first
// there is no account, let's onboard first
return <Redirect to="/onboarding/info-intro" />
}

Expand Down
4 changes: 2 additions & 2 deletions window-provider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default class TahoWindowProvider extends EventEmitter {
) {
if (
event.origin !== this.transport.origin || // filter to messages claiming to be from the provider-bridge script
event.source !== window || // we want to recieve messages only from the provider-bridge script
event.source !== window || // we want to receive messages only from the provider-bridge script
event.data.target !== WINDOW_PROVIDER_TARGET
) {
return
Expand Down Expand Up @@ -155,7 +155,7 @@ export default class TahoWindowProvider extends EventEmitter {
if (isWindowResponseEvent(event)) {
if (
event.origin !== this.transport.origin || // filter to messages claiming to be from the provider-bridge script
event.source !== window || // we want to recieve messages only from the provider-bridge script
event.source !== window || // we want to receive messages only from the provider-bridge script
event.data.target !== WINDOW_PROVIDER_TARGET
) {
return
Expand Down

0 comments on commit c3e074f

Please sign in to comment.