Skip to content

Commit

Permalink
final QA and fix some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
stdihdev committed Oct 9, 2020
1 parent 4d4682e commit 192915e
Show file tree
Hide file tree
Showing 12 changed files with 61 additions and 1,200 deletions.
Binary file added .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: start
start:
docker-compose up db graphql nextjs
docker-compose up -d db graphql nextjs

.PHONY: migration
migration:
docker-compose run migration
docker-compose run -d migration
1 change: 1 addition & 0 deletions client/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ yarn-error.log*

# vercel
.vercel

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { useState } from 'react'
import Router from 'next/router'
import { Pants, newPants } from '../__generated__/types'
import { useCreatePants } from './mutations/__generated__/CreatePants'
import { All_pantsDocument } from './queries/__generated__/All_pants'
Expand Down Expand Up @@ -34,7 +35,7 @@ export default function AddPants() {
variables: variablesPants
}).finally(
() => {
setValuesPants(newPants())
Router.push('/');
})
}

Expand Down
2 changes: 1 addition & 1 deletion client/components/pants/PantsList.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { All_pantsDocument, useAll_pants } from './queries/__generated__/All_pants'
import React from 'react'
import { All_pantsDocument, useAll_pants } from './queries/__generated__/All_pants'
import { useDeletePantsById } from './mutations/__generated__/DeletePantsById'
import { Pants } from '../__generated__/types'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { useEffect, useState } from 'react'
import Router from 'next/router'
import { Shirt, ShirtColorType, newShirt } from '../__generated__/types'
import { useCreateShirt } from './mutations/__generated__/CreateShirt'
import { All_shirtsDocument } from './queries/__generated__/All_shirts'
Expand Down Expand Up @@ -38,7 +39,7 @@ export default function AddShirt() {
variables: variablesShirt
}).finally(
() => {
setValuesShirt(newShirt())
Router.push('/');
})
}

Expand Down
2 changes: 1 addition & 1 deletion client/components/shirt/ShirtList.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { All_shirtsDocument, useAll_shirts } from './queries/__generated__/All_shirts'
import React from 'react'
import { All_shirtsDocument, useAll_shirts } from './queries/__generated__/All_shirts'
import { useDeleteShirtById } from './mutations/__generated__/DeleteShirtById'
import { Shirt } from '../__generated__/types'

Expand Down
Loading

0 comments on commit 192915e

Please sign in to comment.