Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ function SelectReveal(props: {
{canCreateDelayedRevealBatch && (
<TabButtons
containerClassName="mb-8"
tabClassName="!text-sm"
tabs={[
{
name: "Reveal upon mint",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ export const CodeSegment: React.FC<CodeSegmentProps> = ({
{!hideTabs && (
<TabButtons
hideBottomLine={!!onlyTabs}
tabClassName="text-sm gap-2 !text-sm"
tabContainerClassName="px-3 pt-1.5 gap-0.5"
tabIconClassName="size-4"
tabs={environments.map((env) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export const FactoryFieldset: React.FC<FactoryFieldsetProps> = ({
</p>

<TabButtons
tabClassName="!text-sm font-semibold"
tabs={[
{
name: "Default Factory",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ export function LandingFieldset({
</p>

<TabButtons
tabClassName="!text-sm"
tabs={[
{
name: "Write",
Expand Down Expand Up @@ -226,7 +225,6 @@ export function LandingFieldset({
</p>
)}
<TabButtons
tabClassName="!text-sm"
tabs={[
{
name: "Write",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,6 @@ export function CodeOverview(props: {
<div className="bg-background">
<TabButtons
tabs={tabList}
tabClassName="!text-sm"
tabContainerClassName="px-3 pt-2"
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ export const ContractFunctionsPanel: React.FC<ContractFunctionsPanelProps> = ({
<div className="flex flex-col h-full relative">
<TabButtons
tabContainerClassName="px-3 pt-2"
tabClassName="!text-sm"
tabs={[
...(viewFunctions.length > 0
? [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ export function DatePickerWithRange(props: {
<div className={cn("px-4", !props.header && "py-4")}>
<TabButtons
activeTabClassName="!bg-inverted !text-inverted-foreground"
tabClassName="!text-sm"
tabContainerClassName="gap-2"
tabs={[
{
Expand Down
4 changes: 2 additions & 2 deletions apps/dashboard/src/@/components/ui/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function TabLinks(props: {
<Link
aria-disabled={tab.isDisabled}
className={cn(
"relative h-auto rounded-lg px-3 font-normal text-muted-foreground text-sm lg:text-sm",
"relative inline-flex h-auto items-center gap-1.5 rounded-lg font-medium hover:bg-accent !px-3",
!tab.isActive && !tab.isDisabled && "hover:text-foreground",
tab.isDisabled && "pointer-events-none",
tab.isActive && "!text-foreground",
Expand Down Expand Up @@ -125,7 +125,7 @@ export function TabButtons(props: {
>
<Button
className={cn(
"relative inline-flex h-auto items-center gap-1.5 rounded-lg px-2 font-medium text-sm hover:bg-accent lg:px-3 lg:text-base",
"relative inline-flex h-auto items-center gap-1.5 rounded-lg font-medium hover:bg-accent !px-3",
!tab.isActive &&
"text-muted-foreground hover:text-foreground",
tab.isDisabled && "cursor-not-allowed opacity-50",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ export const CreateListingButton: React.FC<CreateListingButtonProps> = ({
{isInsightSupported ? (
<>
<TabButtons
tabClassName="text-sm gap-2 !text-sm"
tabContainerClassName="gap-0.5"
tabs={LISTING_MODES.map((mode) => ({
isActive: mode === listingMode,
name: mode,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ export const TokenIdPage: React.FC<TokenIdPageProps> = ({
</div>

<TabButtons
tabClassName="!text-sm"
tabs={[
{
isActive: tab === "Details",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ function TokenInfoUI(props: {
{props.type === "erc1155" && (
<div className="border-t border-dashed pt-2">
<TabButtons
tabClassName="!text-sm"
tabs={[
{
isActive: tab === "traits",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export function TeamMembersSettingsPage(props: {
<div className="h-10" />

<TabButtons
tabClassName="!text-sm"
tabs={[
{
isActive: manageTab === "members",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export function IntegrateAPIKeyCodeTabs(props: {
return (
<div>
<TabButtons
tabClassName="!text-sm"
tabs={Object.entries(tabNames).map(([key, name]) => ({
isActive: tab === key,
name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export function WaitingForIntegrationCard(props: {
{/* Code */}
<div>
<TabButtons
tabClassName="!text-sm"
tabs={props.codeTabs.map((tab) => ({
isActive: tab.label === selectedTab,
name: tab.label,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export const EngineAccessTokens: React.FC<EngineAccessTokensProps> = ({
{supportsKeyPairAuth && (
<TabButtons
containerClassName="mb-4 mt-3"
tabClassName="!text-sm"
tabs={[
{
name: "Standard",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export function EngineWalletConfig({
</div>

<TabButtons
tabClassName="font-medium !text-sm"
tabs={filteredWalletOptions.map(({ key, name }) => ({
icon:
(key === "aws-kms" && !isAwsKmsConfigured) ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export function BuyWidgetFTUX(props: {

<div className="p-4 pt-2">
<TabButtons
tabClassName="!text-sm"
tabs={[
{
isActive: tab === "embed",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export function UploadNFTsFieldset(props: {
<StepCard nextButton={undefined} prevButton={undefined} title="Upload NFTs">
<TabButtons
containerClassName="pt-2 px-4 md:px-6"
tabClassName="!text-sm"
tabs={[
{
isActive: props.nftData.type === "single",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function TransactionsLayout(props: {
<div className="pt-4 lg:pt-6">
{/* header */}
<div className="container flex max-w-7xl flex-col gap-4">
<div className="flex flex-row items-center justify-between">
<div className="flex flex-col lg:flex-row lg:items-center justify-between gap-4">
<div className="flex flex-col">
<h1 className="mb-1 flex items-center gap-2 font-semibold text-3xl tracking-tight">
Transactions{" "}
Expand All @@ -53,15 +53,20 @@ function TransactionsLayout(props: {
</Link>
</div>
</div>
<Button variant="outline" asChild className="rounded-full">
<Button
variant="outline"
asChild
className="rounded-full bg-background"
size="sm"
>
<Link href={`${projectLayoutPath}/engine/dedicated`}>
View Dedicated Engine
</Link>
</Button>
</div>
</div>

<div className="h-4" />
<div className="h-5" />

{/* Nav */}
<TabPathLinks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export function TryItOut({ useEngineAPI }: TryItOutProps) {

<div>
<TabButtons
tabClassName="!text-sm"
tabs={[
{
isActive: activeTab === "curl",
Expand Down Expand Up @@ -166,7 +165,7 @@ curl -X POST "${NEXT_PUBLIC_THIRDWEB_API_HOST}/v1/transactions" \\
-H "x-secret-key: <your-project-secret-key>" \\
-d '{
"chainId": "84532",
"from": "<your-server-wallet-address>",
"from": "<your-server-wallet-address>",
"transactions": [
{
"type": "contractCall",
Expand All @@ -191,7 +190,7 @@ const response = await fetch(
"from": "<your-server-wallet-address>",
"transactions": [
{
"type": "contractCall",
"type": "contractCall",
"contractAddress": "0x...",
"method": "function mintTo(address to, uint256 amount)",
"params": ["0x...", "100"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@ function TransactionParametersCard({
</CardHeader>
<CardContent className="space-y-4">
<TabButtons
tabClassName="!text-sm"
tabs={[
{
isActive: activeTab === "decoded",
Expand Down
Loading