Skip to content

Commit

Permalink
chore(profile): updates links for DO
Browse files Browse the repository at this point in the history
  • Loading branch information
poolsar42 committed Jan 11, 2023
1 parent 3a2da5a commit f90357e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
9 changes: 0 additions & 9 deletions apps/profile/app/routes/account/gallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,6 @@ const Nft = forwardRef(
* It re-renders this small component quite often
* every time user changes screen size
*/
const [width, setWidth] = useState(0)
useLayoutEffect(() => {
function updateSize() {
setWidth(window.innerWidth)
}
window.addEventListener('resize', updateSize)
updateSize()
return () => window.removeEventListener('resize', updateSize)
}, [])

const inlineStyles = {
opacity: faded ? '0.2' : isDragging ? '0' : '1',
Expand Down
2 changes: 0 additions & 2 deletions apps/profile/app/routes/account/settings/integrations.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


export default function AccountSettingsIntegrations() {
return (
<>Connection Integrations</>
Expand Down
2 changes: 2 additions & 0 deletions packages/galaxy-client/gql/profile.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ query getProfile {
name
url
verified
links_order
}
website
}
Expand All @@ -45,6 +46,7 @@ query getProfileFromAddress($addressURN: URN!) {
name
url
verified
links_order
}
website
}
Expand Down
1 change: 1 addition & 0 deletions platform/account/src/jsonrpc/validators/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const ProfileSchema = z.object({
name: z.string(),
url: z.string().url().or(z.literal('')),
verified: z.boolean(),
links_order: z.number(),
})
)
.optional()
Expand Down
2 changes: 2 additions & 0 deletions platform/galaxy/src/schema/types/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default /* GraphQL */ `
name: String
url: String
verified: Boolean
links_order: Number
}
type Profile {
Expand All @@ -40,6 +41,7 @@ export default /* GraphQL */ `
name: String
url: String
verified: Boolean
links_order: Number
}
input ProfileInput {
Expand Down

0 comments on commit f90357e

Please sign in to comment.