-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feat/single page #30
Feat/single page #30
Conversation
…y to better represent data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
"html-webpack-plugin": "^4.5.2", | ||
"mini-css-extract-plugin": "^0.9.0", | ||
"razzle": "^4.0.6", | ||
"razzle-dev-utils": "^4.0.6", | ||
"razzle": "^4.2.6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wiih aman nih naik versi?
@@ -17,6 +17,7 @@ const App = () => { | |||
<Switch> | |||
<Route exact path="/" component={Home} /> | |||
<Route exact path="/about" component={About} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
about hapusin aja ga sih?
@@ -33,10 +33,12 @@ | |||
} | |||
|
|||
h1 { | |||
font-family: 'TinderFont', cursive; | |||
font-family: 'TinderFont', "Noto Sans", 'Trebuchet MS', sans-serif; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh nice
border: 1px solid var(--light-grey-tw); | ||
} | ||
|
||
.button.tweet:hover { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
@@ -17,6 +17,7 @@ const App = () => { | |||
<Switch> | |||
<Route exact path="/" component={Home} /> | |||
<Route exact path="/about" component={About} /> | |||
<Route exact path="/:profileId" component={Home} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weh baru sadar disatuin yap
@@ -13,7 +13,7 @@ function pickRandom(arr, n) { | |||
result[n] = arr[x in taken ? taken[x] : x]; | |||
taken[x] = --len in taken ? taken[len] : len; | |||
} | |||
return result.map( res => ({...res, id: short.generate() })); | |||
return result.map( res => ({...res, unique_key: short.generate() })); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sepakat
<h2 className='infoText'> | ||
{lastDirection ? `` : 'Geser gambar untuk memulai'} | ||
</h2> | ||
{ !lastDirection && <h2 className='infoText'>Geser gambar untuk memulai</h2>} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh iya bener begini
|
||
const allGirls = data && ('pages' in data) ? data.pages.flat() : []; | ||
const allGirls = data && ('pages' in data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
urang ga ngerti baca ini, jadi kalau ada profile, si profile ditaruh paling atas kan? tapi di belakangnya tetap dari infiniteQuery kan?
const allGirls = data && ('pages' in data) ? data.pages.flat() : []; | ||
const allGirls = data && ('pages' in data) | ||
? profile | ||
? [...data.pages.flat(), profile] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool sih
const swiped = (direction, id) => { | ||
const girl = allGirls.find((item) => item.id === id); | ||
const swiped = (direction, key) => { | ||
const girl = allGirls.find((item) => item.unique_key === key); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay sepakat
Banyak improvement polishing akhir2, termasuk:
Will close #26 and hopefully #10 (simpler approach, less dependency)