Skip to content

Commit

Permalink
Remove the welcome embed (#8)
Browse files Browse the repository at this point in the history
- Removes `/WelcomeEmbed` and its export. It was just used as an
example.
- Renamed PortingEmbed's `Step` to `PortingEmbedStep` to have a more
unique name.
  • Loading branch information
timomeh committed Mar 4, 2024
1 parent fee95ad commit 77c4437
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 315 deletions.
7 changes: 5 additions & 2 deletions lib/PortingEmbed/index.tsx
Expand Up @@ -24,9 +24,12 @@ type SubmitStatusEvent =
| { status: 'success'; porting: Porting }
| { status: 'error'; error: unknown }
type CompletedEvent = { porting: Porting }
type StepChangeEvent = { prevStep: Step; nextStep: Step }
type StepChangeEvent = {
prevStep: PortingEmbedStep
nextStep: PortingEmbedStep
}

export type Step = ReturnType<typeof wizardStep>
export type PortingEmbedStep = ReturnType<typeof wizardStep>

export type Events = {
validationChange: ValidationChangeEvent
Expand Down
18 changes: 0 additions & 18 deletions lib/WelcomeEmbed/TestComponentWithFetch.tsx

This file was deleted.

38 changes: 0 additions & 38 deletions lib/WelcomeEmbed/WelcomeEmbed.tsx

This file was deleted.

19 changes: 0 additions & 19 deletions lib/WelcomeEmbed/__stories__/WelcomeEmbed.stories.tsx

This file was deleted.

26 changes: 0 additions & 26 deletions lib/WelcomeEmbed/__tests__/TestComponentWithFetch.test.tsx

This file was deleted.

38 changes: 0 additions & 38 deletions lib/WelcomeEmbed/__tests__/WelcomeEmbed.test.tsx

This file was deleted.

70 changes: 0 additions & 70 deletions lib/WelcomeEmbed/__tests__/index.test.tsx

This file was deleted.

99 changes: 0 additions & 99 deletions lib/WelcomeEmbed/index.tsx

This file was deleted.

1 change: 0 additions & 1 deletion lib/index.ts
@@ -1,4 +1,3 @@
import './styles/styles.css'

export { WelcomeEmbed } from './WelcomeEmbed'
export * from './PortingEmbed'
4 changes: 0 additions & 4 deletions testing/http.ts
Expand Up @@ -5,10 +5,6 @@ import { UpdatePortingBody } from '../lib/types'
import { db } from './db'

export const handlers: HttpHandler[] = [
http.get('https://api.example.com/users/:id', () => {
return HttpResponse.json({ name: 'George' })
}),

http.get<{ project: string; id: string }>(
'https://api.gigs.com/projects/:project/subscriptions/:id',
async ({ params }) => {
Expand Down

0 comments on commit 77c4437

Please sign in to comment.