Skip to content

Commit

Permalink
feat(extension): making rounded corners standard (#1008)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrorezende authored Aug 16, 2024
1 parent e7c465e commit 47d61db
Show file tree
Hide file tree
Showing 34 changed files with 17 additions and 79 deletions.
2 changes: 1 addition & 1 deletion apps/extension/src/App/Accounts/ParentAccounts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const ParentAccounts = (): JSX.Element => {
<nav className="grid items-end grid-cols-[auto_min-content]">
<p className="text-white font-medium text-xs">Set default keys</p>
<div className="w-26">
<ActionButton borderRadius="md" size="xs" onClick={goToSetupPage}>
<ActionButton size="xs" onClick={goToSetupPage}>
Add Keys
</ActionButton>
</div>
Expand Down
6 changes: 1 addition & 5 deletions apps/extension/src/App/Accounts/ViewAccount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,7 @@ export const ViewAccount = (): JSX.Element => {
shieldedAccountAddress={shieldedAddress}
/>
</Stack>
<ActionButton
size="md"
borderRadius="md"
onClick={() => navigate(-1)}
>
<ActionButton size="md" onClick={() => navigate(-1)}>
Back
</ActionButton>
</>
Expand Down
6 changes: 1 addition & 5 deletions apps/extension/src/App/Settings/ConnectedSites.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ const DisconnectAllButton: React.FC<{
await revokeConnection(...connectedSites);

return (
<ActionButton
borderRadius="md"
size="xs"
onClick={handleRevokeAllConnections}
>
<ActionButton size="xs" onClick={handleRevokeAllConnections}>
Disconnect All
</ActionButton>
);
Expand Down
3 changes: 1 addition & 2 deletions apps/extension/src/Approvals/ApproveConnection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ export const ApproveConnection: React.FC = () => {
Approve connection for <strong>{interfaceOrigin}</strong>?
</Alert>
<Stack gap={2}>
<ActionButton borderRadius="sm" onClick={() => handleResponse(true)}>
<ActionButton onClick={() => handleResponse(true)}>
Approve
</ActionButton>
<ActionButton
borderRadius="sm"
outlineColor="yellow"
onClick={() => handleResponse(false)}
>
Expand Down
5 changes: 1 addition & 4 deletions apps/extension/src/Approvals/ApproveSignArbitrary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,10 @@ export const ApproveSignArbitrary: React.FC<Props> = ({
</p>
)}
<Stack gap={2}>
<ActionButton borderRadius="sm" onClick={handleApproveClick}>
Approve
</ActionButton>
<ActionButton onClick={handleApproveClick}>Approve</ActionButton>
<ActionButton
backgroundHoverColor="black"
textHoverColor="yellow"
borderRadius="sm"
outlineColor="yellow"
onClick={handleReject}
>
Expand Down
3 changes: 1 addition & 2 deletions apps/extension/src/Approvals/ApproveSignTx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,10 @@ export const ApproveSignTx: React.FC<Props> = ({ details, setDetails }) => {
</p>
)}
<Stack gap={1.5} direction="vertical">
<ActionButton borderRadius="sm">Approve</ActionButton>
<ActionButton>Approve</ActionButton>
<ActionButton
backgroundHoverColor="black"
textHoverColor="yellow"
borderRadius="sm"
onClick={handleReject}
outlineColor="yellow"
>
Expand Down
8 changes: 2 additions & 6 deletions apps/extension/src/Approvals/ConfirmSignArbitrary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,10 @@ export const ConfirmSignature: React.FC<Props> = ({ details }) => {
/>
</Stack>
<Stack gap={3}>
<ActionButton borderRadius="sm" type="submit" disabled={!password}>
<ActionButton type="submit" disabled={!password}>
Authenticate
</ActionButton>
<ActionButton
borderRadius="sm"
outlineColor="yellow"
onClick={() => navigate(-1)}
>
<ActionButton outlineColor="yellow" onClick={() => navigate(-1)}>
Back
</ActionButton>
</Stack>
Expand Down
3 changes: 1 addition & 2 deletions apps/extension/src/Approvals/ConfirmSignLedgerTx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,10 @@ export const ConfirmSignLedgerTx: React.FC<Props> = ({ details }) => {
/>
<div className="flex-1" />
<Stack gap={2}>
<ActionButton borderRadius="sm" disabled={status === Status.Pending}>
<ActionButton disabled={status === Status.Pending}>
Submit
</ActionButton>
<ActionButton
borderRadius="sm"
outlineColor="yellow"
type="button"
onClick={handleRejectButton}
Expand Down
6 changes: 1 addition & 5 deletions apps/extension/src/Approvals/ConfirmSignTx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,10 @@ export const ConfirmSignTx: React.FC<Props> = ({ details }) => {
/>
<div className="flex-1" />
<Stack gap={2}>
<ActionButton
borderRadius="sm"
disabled={!password || status === Status.Pending}
>
<ActionButton disabled={!password || status === Status.Pending}>
Authenticate
</ActionButton>
<ActionButton
borderRadius="sm"
outlineColor="yellow"
type="button"
onClick={() => navigate(-1)}
Expand Down
1 change: 0 additions & 1 deletion apps/faucet/src/App/Faucet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ export const FaucetForm: React.FC<Props> = ({
<ActionButton
backgroundHoverColor="yellow"
textHoverColor="black"
borderRadius="sm"
outlineColor="yellow"
className={`max-w-fit ${!isFormValid && "opacity-50"}`}
color="cyan"
Expand Down
2 changes: 0 additions & 2 deletions apps/namadillo/src/App/AccountOverview/NavigationFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export const NavigationFooter = (): JSX.Element => {
textColor="black"
textHoverColor="cyan"
backgroundHoverColor="transparent"
borderRadius="sm"
>
Stake
</ActionButton>
Expand All @@ -29,7 +28,6 @@ export const NavigationFooter = (): JSX.Element => {
onClick={() => navigate(GovernanceRoutes.index())}
outlineColor="yellow"
className="uppercase"
borderRadius="sm"
backgroundColor="transparent"
textColor="yellow"
backgroundHoverColor="yellow"
Expand Down
8 changes: 1 addition & 7 deletions apps/namadillo/src/App/Common/ConnectExtensionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ export const ConnectExtensionButton = (): JSX.Element => {
return (
<>
{extensionAttachStatus === "attached" && !isExtensionConnected && (
<ActionButton
backgroundColor="yellow"
size="sm"
borderRadius="sm"
onClick={connect}
>
<ActionButton backgroundColor="yellow" size="sm" onClick={connect}>
Connect Extension
</ActionButton>
)}
Expand All @@ -28,7 +23,6 @@ export const ConnectExtensionButton = (): JSX.Element => {
rel="nofollow noreferrer"
backgroundColor="yellow"
size="sm"
borderRadius="sm"
>
Download Extension
</ActionButton>
Expand Down
1 change: 0 additions & 1 deletion apps/namadillo/src/App/Common/Intro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export const Intro = (): JSX.Element => {
rel="noreferrer"
size="sm"
outlineColor="yellow"
borderRadius="sm"
>
Help
</ActionButton>
Expand Down
2 changes: 1 addition & 1 deletion apps/namadillo/src/App/Common/Setup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const Setup = ({ onChange }: SetupProps): JSX.Element => {
reset();
}}
/>
<ActionButton borderRadius="sm" disabled={isPending || isError}>
<ActionButton disabled={isPending || isError}>
{isPending ? "Verifying..." : "Confirm"}
</ActionButton>
</form>
Expand Down
3 changes: 0 additions & 3 deletions apps/namadillo/src/App/Governance/ProposalHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ const JsonButton: React.FC<{
className="px-3 py-2"
size="xs"
outlineColor="white"
borderRadius="sm"
onClick={() => navigate(GovernanceRoutes.viewJson(proposalId).url)}
>
<span className="flex text-xs justify-between gap-2">
Expand Down Expand Up @@ -176,7 +175,6 @@ const WasmButton: React.FC<{
className="px-3 py-2"
outlineColor="white"
size="xs"
borderRadius="sm"
disabled={disabled}
download={filename}
href={href}
Expand Down Expand Up @@ -335,7 +333,6 @@ const VoteButton: React.FC<{
<div className="w-32 flex items-center justify-center">
<ActionButton
size="sm"
borderRadius="sm"
className="py-2 px-4"
backgroundColor="white"
disabled={disabled}
Expand Down
1 change: 0 additions & 1 deletion apps/namadillo/src/App/Governance/SubmitVote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ export const WithProposalId: React.FC<{ proposalId: bigint }> = ({
</footer>
<ActionButton
type="submit"
borderRadius="sm"
disabled={
!canVote.data || typeof selectedVoteType === "undefined"
}
Expand Down
1 change: 0 additions & 1 deletion apps/namadillo/src/App/Settings/Advanced.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export const Advanced = (): JSX.Element => {
/>
</Stack>
<ActionButton
borderRadius="sm"
className="shrink-0"
disabled={isPending || indexerMutation.isError || rpcMutation.isError}
>
Expand Down
1 change: 0 additions & 1 deletion apps/namadillo/src/App/Sidebars/MainnetRoadmap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ const MainnetRoadmap = (): JSX.Element => {
backgroundHoverColor="yellow"
outlineColor="yellow"
size="sm"
borderRadius="sm"
>
Learn about Mainnet phases
</ActionButton>
Expand Down
1 change: 0 additions & 1 deletion apps/namadillo/src/App/Sidebars/ProposalDiscord.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export const ProposalDiscord: React.FC = () => {
</p>
<ActionButton
size="xs"
borderRadius="sm"
backgroundColor="black"
className="text-white"
backgroundHoverColor="cyan"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export const ValidatorDiversification = (): JSX.Element => {
backgroundHoverColor="cyan"
href="https://namada.net"
target="_blank"
borderRadius="sm"
size="xs"
>
Learn about CPoS
Expand Down
10 changes: 2 additions & 8 deletions apps/namadillo/src/App/SignMessages/SignMessages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ export const SignMessages = (): JSX.Element => {
readOnly={isPending}
required
/>
<ActionButton
className="shrink-0"
borderRadius="sm"
disabled={isPending}
>
<ActionButton className="shrink-0" disabled={isPending}>
{isPending ? "Signing..." : "Sign Message"}
</ActionButton>
</form>
Expand All @@ -72,9 +68,7 @@ export const SignMessages = (): JSX.Element => {
value={data?.signature}
/>
</Stack>
<ActionButton borderRadius="sm" onClick={onCloseModal}>
Close
</ActionButton>
<ActionButton onClick={onCloseModal}>Close</ActionButton>
</div>
)}
</ModalContainer>
Expand Down
1 change: 0 additions & 1 deletion apps/namadillo/src/App/Staking/AllValidatorsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ export const AllValidatorsTable = ({
<ActionButton
size="sm"
backgroundColor="cyan"
borderRadius="sm"
onClick={() => navigate(StakingRoutes.incrementBonding().url)}
>
Stake
Expand Down
1 change: 0 additions & 1 deletion apps/namadillo/src/App/Staking/IncrementBonding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ const IncrementBonding = (): JSX.Element => {
<ActionButton
type="submit"
size="sm"
borderRadius="sm"
className="mt-2 col-start-2"
backgroundColor="cyan"
disabled={
Expand Down
3 changes: 0 additions & 3 deletions apps/namadillo/src/App/Staking/MyValidatorsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ export const MyValidatorsTable = (): JSX.Element => {
className="basis-[content] py-1"
backgroundColor="cyan"
size="md"
borderRadius="sm"
onClick={() => navigate(StakingRoutes.incrementBonding().url)}
>
Stake
Expand All @@ -120,7 +119,6 @@ export const MyValidatorsTable = (): JSX.Element => {
className="basis-[content] py-1"
backgroundColor="white"
size="md"
borderRadius="sm"
onClick={() => navigate(StakingRoutes.redelegateBonding().url)}
>
Redelegate
Expand All @@ -133,7 +131,6 @@ export const MyValidatorsTable = (): JSX.Element => {
textHoverColor="white"
backgroundHoverColor="pink"
size="md"
borderRadius="sm"
onClick={() => navigate(StakingRoutes.unstake().url)}
>
Unstake
Expand Down
1 change: 0 additions & 1 deletion apps/namadillo/src/App/Staking/ReDelegate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ export const ReDelegate = (): JSX.Element => {
backgroundColor="white"
backgroundHoverColor="pink"
size="sm"
borderRadius="sm"
onClick={() => navigate(StakingRoutes.unstake().url)}
>
Unstake
Expand Down
1 change: 0 additions & 1 deletion apps/namadillo/src/App/Staking/ReDelegateAssignStake.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ export const ReDelegateAssignStake = ({
type="submit"
size="sm"
backgroundColor="white"
borderRadius="sm"
className="mt-2 col-start-2"
disabled={hasInvalidDistribution || isPerformingRedelegation}
>
Expand Down
3 changes: 0 additions & 3 deletions apps/namadillo/src/App/Staking/ReDelegateRemoveStake.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ export const ReDelegateRemoveStake = ({
className="w-auto"
outlineColor="cyan"
size="sm"
borderRadius="sm"
onClick={onReDelegateAll}
>
Redelegate all
Expand All @@ -120,7 +119,6 @@ export const ReDelegateRemoveStake = ({
className="w-auto"
outlineColor="white"
size="sm"
borderRadius="sm"
onClick={onClear}
>
Clear
Expand Down Expand Up @@ -153,7 +151,6 @@ export const ReDelegateRemoveStake = ({
type="button"
size="sm"
backgroundColor="cyan"
borderRadius="sm"
className="mt-2 w-1/4 mx-auto text-nowrap min-w-fit"
disabled={hasZeroUpdatedAmounts || !hasValidUpdatedAmounts}
onClick={onProceed}
Expand Down
2 changes: 0 additions & 2 deletions apps/namadillo/src/App/Staking/StakingSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ export const StakingSummary = (): JSX.Element => {
callToAction={
<ActionButton
className="px-8"
borderRadius="sm"
size="xs"
backgroundColor="cyan"
onClick={() => navigate(StakingRoutes.incrementBonding().url)}
Expand Down Expand Up @@ -135,7 +134,6 @@ export const StakingSummary = (): JSX.Element => {
callToAction={
<ActionButton
className="px-8"
borderRadius="sm"
size="xs"
backgroundColor="white"
disabled
Expand Down
2 changes: 0 additions & 2 deletions apps/namadillo/src/App/Staking/Unstake.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ const Unstake = (): JSX.Element => {
className="inline-flex w-auto leading-none px-4 py-3 mb-4"
outlineColor="pink"
textHoverColor="white"
borderRadius="sm"
onClick={onUnbondAll}
>
Unbond All
Expand All @@ -247,7 +246,6 @@ const Unstake = (): JSX.Element => {
<ActionButton
size="sm"
backgroundColor="white"
borderRadius="sm"
backgroundHoverColor="pink"
className="mt-2 col-start-2"
disabled={
Expand Down
1 change: 0 additions & 1 deletion apps/namadillo/src/App/Staking/ValidatorFilterNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export const ValidatorFilterNav = ({
backgroundColor="white"
className="sm:ml-auto w-auto px-8"
size="sm"
borderRadius="sm"
>
Randomize
</ActionButton>
Expand Down
Loading

0 comments on commit 47d61db

Please sign in to comment.