-
Notifications
You must be signed in to change notification settings - Fork 10
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
GEN-637 - feat: added TrustpilotBlock #2711
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
c2481f7
to
4f41042
Compare
401cadb
to
db09879
Compare
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.
Nice work! 🙌
On thing to consider is to put the text and url as fields in Storyblok instead. Then we could make a reusable block of it
4f41042
to
727aa26
Compare
db09879
to
b57f5a1
Compare
727aa26
to
b33c804
Compare
b57f5a1
to
e7e1901
Compare
Have update it so we get the link from Storyblok |
b33c804
to
465cd12
Compare
e7e1901
to
9e5aa92
Compare
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.
Awesome! 🙌
465cd12
to
412a50d
Compare
9e5aa92
to
6009f1b
Compare
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.
Look good!
paddingBlock: '10rem', | ||
paddingInline: '1rem', |
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.
Why not use theme?
|
||
const ScoreText = styled(Text)({ | ||
lineHeight: '1.32', | ||
// Font size tihs high is an edge case. That's why I'm not using Text's 'size' prop |
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.
nit: typo "tihs"
412a50d
to
6292006
Compare
6009f1b
to
f2a900a
Compare
6292006
to
b9aa0f1
Compare
f2a900a
to
7bed79e
Compare
b9aa0f1
to
91abec3
Compare
7bed79e
to
e2bf84a
Compare
@guilhermespopolin started a stack merge that includes this pull request via Graphite. |
91abec3
to
0e6b172
Compare
Graphite rebased this pull request as part of a merge. |
e2bf84a
to
8b554d4
Compare
@guilhermespopolin merged this pull request with Graphite. |
Describe your changes
TrustpilotBlock
that displays Trustpilot data.How the whole thing works:
apps/store/src/services/trustpilot/trustpilot.tsx
- which fetch that data from Trustpilot API and store it in a Jotai's atom so it can be available through the whole app. We then fetch that data and proper hydrate the atom in theapps/store/src/pages/[[...slug]].tsx
andapps/store/src/components/LayoutWithMenu/LayoutWithMenu.tsx
files respectively.TrustpilotBlock
then reads that data from the atom and proper display it.Justify why they are needed
Requested by design/editors
Can be tested here