Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarlosn committed Jul 5, 2024
2 parents 05358e1 + 0c36a88 commit 12f027f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/protolib/components/ButtonGroup.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { GroupProps, XGroup, YGroup } from "tamagui"

const ButtonGroup = React.forwardRef(({ mode, ...props }: GroupProps & { mode?: "vertical" | "horizontal" }, ref: any) => {
export const ButtonGroup = React.forwardRef(({ mode, ...props }: GroupProps & { mode?: "vertical" | "horizontal" }, ref: any) => {
return !mode || mode == 'horizontal' ? (
<XGroup
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion packages/protolib/components/GroupButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useContext } from "react";
import { Button, ButtonProps, Stack, XGroup } from "tamagui";
import { ActiveGroupContext } from "./ActiveGroup";

const GroupButton = React.forwardRef(( {inActive, ...props} : ButtonProps & {inActive?: boolean}, ref: any) => {
export const GroupButton = React.forwardRef(( {inActive, ...props} : ButtonProps & {inActive?: boolean}, ref: any) => {
return (<Stack ref={ref}>
<XGroup.Item>
<Button {...{
Expand Down
5 changes: 4 additions & 1 deletion packages/protolib/components/LogPanel.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@

import { XStack, YStack, Text, ScrollView, Popover, Input } from 'tamagui'
import { JSONViewer, useTint, GroupButton, ButtonGroup } from 'protolib'
import { JSONViewer } from 'protolib/components/jsonui'
import { useTint } from 'protolib/lib/Tints'
import { GroupButton } from 'protolib/components/GroupButton'
import { ButtonGroup } from 'protolib/components/ButtonGroup'
import { InteractiveIcon } from './InteractiveIcon'
import { Ban, Microscope, Bug, Info, AlertCircle, XCircle, Bomb, Filter } from '@tamagui/lucide-icons'
import { Tinted } from './Tinted'
Expand Down

0 comments on commit 12f027f

Please sign in to comment.