Skip to content

Commit

Permalink
remove /feedback page, add feedback button redirecting to the typefor…
Browse files Browse the repository at this point in the history
…m feedback closing #514
  • Loading branch information
BenGamma committed Jul 12, 2019
1 parent a1ee531 commit 15f508b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/PageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ const communityPagesMore =

export const COMMUNITY_PAGES: IPageMeta[] = communityPages
export const COMMUNITY_PAGES_MORE: IPageMeta[] = communityPagesMore
export const COMMUNITY_PAGES_PROFILE: IPageMeta[] = [settings, feedback]
export const COMMUNITY_PAGES_PROFILE: IPageMeta[] = [settings]
export const ADMIN_PAGES: IPageMeta[] = [admin]
export const NO_HEADER_PAGES: IPageMeta[] = [user]
18 changes: 18 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,22 @@ import {
ADMIN_PAGES,
NO_HEADER_PAGES,
} from './PageList'
import { Link } from 'rebass'
import styled from 'styled-components'

interface IState {
singlePageMode: boolean
displayPageComponent?: any
}

const FeedbackBtn = styled(Link)`
position: fixed;
bottom: 30px;
right: 30px;
padding: 8px;
border-radius: 4px;
`

export class Routes extends React.Component<any, IState> {
constructor(props: any) {
super(props)
Expand Down Expand Up @@ -86,6 +96,14 @@ export class Routes extends React.Component<any, IState> {
</div>
</ScrollToTop>
</BrowserRouter>
<FeedbackBtn
bg={'blue'}
color={'white'}
target="_blank"
href={'https://preciousplastic.typeform.com/to/tO6uDw'}
>
Have a feedback ?
</FeedbackBtn>
</div>
)
}
Expand Down

0 comments on commit 15f508b

Please sign in to comment.