generated from public-assembly/assemble-package
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6389ecd
commit 10867f0
Showing
55 changed files
with
408 additions
and
480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@public-assembly/builder-utils': minor | ||
--- | ||
|
||
This minor bump introduces breaking changes. All componentry has been stripped from the package. The wagmi dependency has been removed, and ethers alongisde it which has been replaced by viem. There are currently no write calls exported by the package. Types have been reorganized into the files that use them. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
apps/builder-utils-sandbox/src/components/auction/TokenTitle.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
apps/builder-utils-sandbox/src/components/proposals/ProposalCardGrid.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
apps/builder-utils-sandbox/src/components/proposals/ProposalDescription.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import * as React from 'react' | ||
import { NounsProposal } from '@public-assembly/builder-utils' | ||
|
||
export default function ProposalDescription({ proposal }) { | ||
export default function ProposalDescription({ proposal }: { proposal: NounsProposal }) { | ||
return <div dangerouslySetInnerHTML={{ __html: proposal?.description }} /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
apps/builder-utils-sandbox/src/components/proposals/ProposalPageGrid.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
apps/builder-utils-sandbox/src/components/proposals/ProposalStatus.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import * as React from 'react' | ||
import { NounsProposal } from '@public-assembly/builder-utils' | ||
|
||
export default function ProposalStatus({ proposal }) { | ||
export default function ProposalStatus({ proposal }: { proposal: NounsProposal }) { | ||
return <div>{proposal?.status}</div> | ||
} |
3 changes: 2 additions & 1 deletion
3
apps/builder-utils-sandbox/src/components/proposals/ProposalTimestamp.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
apps/builder-utils-sandbox/src/components/proposals/ProposalTitle.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import * as React from 'react' | ||
import { NounsProposal } from '@public-assembly/builder-utils' | ||
|
||
export default function ProposalTitle({ proposal }) { | ||
export default function ProposalTitle({ proposal }: { proposal: NounsProposal }) { | ||
return <div>{proposal?.title}</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 12 additions & 10 deletions
22
apps/builder-utils-sandbox/src/components/proposals/Proposer.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
import * as React from 'react' | ||
import { useEnsName } from 'wagmi' | ||
import { shortenAddress } from '../../lib' | ||
import { shortenAddress } from '@public-assembly/builder-utils' | ||
import { Hex } from 'viem' | ||
import { NounsProposal } from '@public-assembly/builder-utils' | ||
|
||
export default function Proposer({ proposal }) { | ||
const { data: ensName } = useEnsName({ | ||
address: proposal?.proposer as Hex | undefined, | ||
}) | ||
export default function Proposer({ proposal }: { proposal: NounsProposal }) { | ||
// const { data: ensName } = useEnsName({ | ||
// address: proposal?.proposer as Hex | undefined, | ||
// }) | ||
|
||
const proposer = React.useMemo( | ||
() => (ensName ? ensName : shortenAddress(proposal?.proposer)), | ||
[ensName, proposal?.proposer] | ||
) | ||
// const proposer = React.useMemo( | ||
// () => (ensName ? ensName : shortenAddress(proposal?.proposer)), | ||
// [ensName, proposal?.proposer] | ||
// ) | ||
|
||
return <div>{proposer}</div> | ||
// {proposer} | ||
return <div></div> | ||
} |
3 changes: 2 additions & 1 deletion
3
apps/builder-utils-sandbox/src/components/proposals/VoteTally.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.