Open platform to collect and prioritize feedback
chore: add poweredby
goenning0c403665346a
diff --git a/public/components/common/PoweredByFider.tsx b/public/components/common/PoweredByFider.tsxindex f7408cbab..1618eb6a9 100644--- a/public/components/common/PoweredByFider.tsx+++ b/public/components/common/PoweredByFider.tsx@@ -1,15 +1,29 @@import React from "react"+import { useFider } from "@fider/hooks"+import { classSet } from "@fider/services"import "./PoweredByFider.scss"interface PoweredByFiderProps {- className: string+ slot: string+ className?: string}export const PoweredByFider = (props: PoweredByFiderProps) => {+ const fider = useFider()++ const source = encodeURIComponent(fider.session.tenant.subdomain)+ const medium = "powered-by"+ const campaign = props.slot++ const className = classSet({+ "c-powered": true,+ [props.className || ""]: props.className,+ })+return (- <div className={`c-powered ${props.className}`}>- <a rel="noopener" href="https://fider.io" target="_blank">+ <div className={className}>+ <a rel="noopener" href={`https://fider.io?utm_source=${source}&utm_medium=${medium}&utm_campaign=${campaign}`} target="_blank">Powered by Fider</a></div>diff --git a/public/pages/Home/Home.page.tsx b/public/pages/Home/Home.page.tsxindex 8f2ea733d..834d45017 100644--- a/public/pages/Home/Home.page.tsx+++ b/public/pages/Home/Home.page.tsx@@ -80,7 +80,7 @@ What can we do better? This is the place for you to vote, discuss and share idea<VStack spacing={2}><Markdown text={fider.session.tenant.welcomeMessage || defaultWelcomeMessage} style="full" /><PostInput placeholder={fider.session.tenant.invitation || defaultInvitation} onTitleChanged={setTitle} />- <PoweredByFider className="sm:hidden md:hidden lg:block" />+ <PoweredByFider slot="home-input" className="sm:hidden md:hidden lg:block" /></VStack></div><div className="p-home__posts-col">@@ -91,7 +91,7 @@ What can we do better? This is the place for you to vote, discuss and share idea) : (<PostsContainer posts={props.posts} tags={props.tags} countPerStatus={props.countPerStatus} />)}- <PoweredByFider className="lg:hidden xl:hidden mt-8" />+ <PoweredByFider slot="home-footer" className="lg:hidden xl:hidden mt-8" /></div></div></>diff --git a/public/pages/ShowPost/ShowPost.page.tsx b/public/pages/ShowPost/ShowPost.page.tsxindex 0e0d12a36..3c200926b 100644--- a/public/pages/ShowPost/ShowPost.page.tsx+++ b/public/pages/ShowPost/ShowPost.page.tsx@@ -19,6 +19,7 @@ import {ImageViewer,Icon,Header,+ PoweredByFider,} from "@fider/components"import { ResponseForm } from "./components/ResponseForm"import { TagsPanel } from "./components/TagsPanel"@@ -196,6 +197,7 @@ export default class ShowPostPage extends React.Component<ShowPostPageProps, Sho<TagsPanel post={this.props.post} tags={this.props.tags} /><NotificationsPanel post={this.props.post} subscribed={this.props.subscribed} /><ModerationPanel post={this.props.post} />+ <PoweredByFider slot="show-post" /></VStack><div className="p-show-post__discussion_col">