Giter VIP home page Giter VIP logo

twitter-clone-frontend's People

Contributors

erjanmx avatar manikandanraji avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

twitter-clone-frontend's Issues

Frontend is broken

# Nav || src/components/layout/Nav.js:134
### TypeError: Cannot read property 'handle' of null
  133 | <li>
> 134 |   <NavLink activeClassName="selected" to={`/${user.handle}`}>
      | ^  135 |     <ProfileIcon /> <span>Profile</span>
  136 |   </NavLink>
  137 | </li>

---

# NewTweet || src/components/Tweet/NewTweet.js:99
### TypeError: Cannot read property 'avatar' of null
   96 | 
   97 | return (
   98 |   <Wrapper>
>  99 |     <Avatar src={user.avatar} alt="avatar" />
      | ^  100 |     <form onSubmit={handleNewTweet}>
  101 |       <div className="new-tweet">
  102 |         <TextareaAutosize

Security vulnerability

I can delete anybody tweet by just

Running this query

{"operationName":"deleteTweet","variables":{"id":"ckbrtcx4k003i0789q712lg0e"},"query":"mutation deleteTweet($id: ID!) {\n  deleteTweet(id: $id) {\n    id\n    __typename\n  }\n}\n"}

Change this id payload to any tweet

Linking to Backend

So this is probably a stupid question, but I'm trying to deploy this application so I can use it and make some changes. I've deployed my backend to Heroku by following the instructions in the backend repo. I've deployed my frontend to Vercel (formerly ZEIT Now). How do I link the two? Is that what the endpoint env vars are for? The Heroku URL just shows the GraphQL IDE, which I assume is correct.

Thanks in advance,
@gideon357

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.