-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add AdWords into a new user's "untrustedMetadata" (front-end part only) #32
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for dreamy-puffpuff-aba7db ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -0,0 +1,55 @@ | |||
import React from "react" | |||
|
|||
type Props = { |
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.
interface and readonly
@@ -114,7 +114,7 @@ export default function Document() { | |||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> | |||
<path d="M8.00001 1C9.85666 1 11.6373 1.73755 12.9501 3.0504C14.263 4.36325 15.0005 6.14385 15.0005 8.0005C15.0005 9.85715 14.263 11.6378 12.9501 12.9506C11.6373 14.2634 9.85666 15.001 8.00001 15.001C6.14336 15.001 4.36276 14.2634 3.04991 12.9506C1.73706 11.6378 0.999512 9.85715 0.999512 8.0005C0.999512 6.14385 1.73706 4.36325 3.04991 3.0504C4.36276 1.73755 6.14336 1 8.00001 1ZM9.05001 5.298C9.57001 5.298 9.99201 4.937 9.99201 4.402C9.99201 3.867 9.56901 3.506 9.05001 3.506C8.53001 3.506 8.11001 3.867 8.11001 4.402C8.11001 4.937 8.53001 5.298 9.05001 5.298ZM9.23301 10.925C9.23301 10.818 9.27001 10.54 9.24901 10.382L8.42701 11.328C8.25701 11.507 8.04401 11.631 7.94401 11.598C7.89864 11.5813 7.86072 11.549 7.83707 11.5068C7.81342 11.4646 7.8056 11.4154 7.81501 11.368L9.18501 7.04C9.29701 6.491 8.98901 5.99 8.33601 5.926C7.64701 5.926 6.63301 6.625 6.01601 7.512C6.01601 7.618 5.99601 7.882 6.01701 8.04L6.83801 7.093C7.00801 6.916 7.20601 6.791 7.30601 6.825C7.35528 6.84268 7.39565 6.87898 7.41846 6.92609C7.44127 6.97321 7.4447 7.02739 7.42801 7.077L6.07001 11.384C5.91301 11.888 6.21001 12.382 6.93001 12.494C7.99001 12.494 8.61601 11.812 9.23401 10.925H9.23301Z" fill="currentColor" /> |
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.
move svg out
const [emailPreference, setEmailPreference] = useState(false); | ||
const [activeSlide, setActiveSlide] = useState(0); | ||
const isDarkMode = useDarkMode().isDarkMode; | ||
const isDarkMode = useContext(DarkModeContext)?.isDarkMode; |
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.
put it in out App Context
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
function Slide({ data, isDarkMode }) { | ||
function Slide({ data, isDarkMode }: { data: { text: string; author: string; role: string }; isDarkMode: boolean }) { |
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.
extract into interface
This change is a backport of work already committed to
mabels/backend
The work went there first because that's where the puck is going to be and because it's a nicer, more up-to date place to work. Then I realized we wanted this part out ASAP, so it's here for the main branch as well.
The Change
Before this change there was one login page and it didn't pass a
?gclid=
parameter anywhere.After this change:
&gclid
query parameter.)gclid
which was the whole point of this.Because this is a backport:
mabels/backend
branch has a cleaner implementation of this, and I'm just doing a temporary fix until that merges in.