Skip to content

Commit

Permalink
fix: add classname
Browse files Browse the repository at this point in the history
  • Loading branch information
baizn committed Oct 13, 2023
1 parent 5b9adc8 commit a7cc4f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ const RichContainer = props => {
<Button
type={HAS_QUERY_VIEW ? 'primary' : 'text'}
icon={<Icon type={DataArea.icon} />}
className='gi-richcontainer-query-button'
style={{
display: 'flex',
justifyContent: 'center',
Expand All @@ -212,6 +213,7 @@ const RichContainer = props => {
<Button
type={HAS_FILTER_VIEW ? 'primary' : 'text'}
icon={<Icon type={FilterArea.icon} />}
className='gi-richcontainer-filter-button'
style={{
display: 'flex',
justifyContent: 'center',
Expand Down Expand Up @@ -265,6 +267,7 @@ const RichContainer = props => {
enable={enable}
onResizeStart={onResizeStart}
onResizeStop={onResizeStop}
className='gi-richcontainer-side'
>
<div style={{ overflow: 'hidden' }}>
{HAS_QUERY_VIEW && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Toolbar = (props: ToolbarProps) => {
<span style={{ padding: '0px 8px 0px 6px', color: '#98989D' }}>{title}</span>
{options.map(item => {
const isActive = value === item.id;
const { id, props: itemProps, component: ItemComponent } = item;
const { id, props: itemProps, component: ItemComponent, info } = item;
const { GIAC_CONTENT } = itemProps;
const title = GIAC_CONTENT ? GIAC_CONTENT.title : 'EMPTY';
const buttonType = isActive ? 'primary' : 'text';
Expand All @@ -48,6 +48,7 @@ const Toolbar = (props: ToolbarProps) => {
type={buttonType}
icon={<Icon type={icon} />}
key={id}
className={info.className}
style={{
display: 'flex',
justifyContent: 'center',
Expand Down

0 comments on commit a7cc4f4

Please sign in to comment.