-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed colors and standerdized them in components
- Loading branch information
1 parent
096b10a
commit 80319f5
Showing
9 changed files
with
44 additions
and
78 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
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
14 changes: 3 additions & 11 deletions
14
packages/nextjs/components/rep-tokens/cards/stylized-cards/StylizedAddressCard.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,22 +1,14 @@ | ||
import { Color } from "./Stylized"; | ||
import { Address } from "~~/components/scaffold-eth"; | ||
|
||
type AddressCardProps = { | ||
address: string; | ||
color?: Color; | ||
textColor?: Color; | ||
isGroup?: boolean; | ||
}; | ||
|
||
export const StylizedAddressCard = ({ | ||
address, | ||
color = "slate", | ||
textColor = "black", | ||
isGroup = false, | ||
}: AddressCardProps) => { | ||
export const StylizedAddressCard = ({ address, isGroup = false }: AddressCardProps) => { | ||
return ( | ||
<div className={`rounded-lg flex items-center justify-center bg-${color}-300 ${isGroup ? "mt-4" : ""}`}> | ||
<Address address={address} textColor={textColor} /> | ||
<div className={`rounded-lg flex items-center justify-center bg-base-300 ${isGroup ? "mt-4" : ""}`}> | ||
<Address address={address} /> | ||
</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
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
11 changes: 4 additions & 7 deletions
11
packages/nextjs/components/rep-tokens/cards/stylized-cards/StylizedStringCard.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