Skip to content

Commit

Permalink
requested changes adressed
Browse files Browse the repository at this point in the history
  • Loading branch information
nlok5923 committed Mar 9, 2021
1 parent 7a437c0 commit 80271c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/Programs/Timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function Timeline() {
const scrollRef = useRef();
//scrolls the timeline to the current date and month
useEffect(() => {
scrollRef.current.scrollTo({x:(30*curr_month+p-1)*40});
scrollRef.current.scrollTo({x:(30*curr_month+p-1)*36});
})
//onclick scrolls the timeline to the left
const scrollLeft=()=>{
Expand Down Expand Up @@ -98,7 +98,7 @@ function Timeline() {
</View>
))
}
<View style={{left:(30*curr_month+p-1)*40}}><Text>Today {dayjs().date()}th {months[curr_month][1]}</Text></View>
<View style={{left:(30*curr_month+p-0.8)*40}}><Text>Today {dayjs().date()}th {months[curr_month][1]}</Text></View>
<View style={{flexDirection:'row'}}>
{
months.map((m,index)=>(
Expand Down

0 comments on commit 80271c7

Please sign in to comment.