Skip to content

Commit

Permalink
update styles
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyu committed Dec 20, 2024
1 parent 342d87e commit ea220e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEffect, useState } from 'react'
import { useNavigate } from 'react-router-dom'

// material-ui
import { Box, Stack, Skeleton } from '@mui/material'
import { Box, Button, Stack, Skeleton } from '@mui/material'

// project imports
import ViewHeader from '@/layout/MainLayout/ViewHeader'
Expand All @@ -22,6 +22,7 @@ import useApi from '@/hooks/useApi'

// icons
import { IconPlus } from '@tabler/icons-react'
import { PiPlus } from 'react-icons/pi'

// ==============================|| CustomAssistantLayout ||============================== //

Expand Down Expand Up @@ -99,9 +100,9 @@ const CustomAssistantLayout = () => {
title='自定义助理'
onBack={() => navigate(-1)}
>
<StyledButton variant='contained' sx={{ borderRadius: 2, height: 40 }} onClick={addNew} startIcon={<IconPlus />}>
<Button variant='contained' color='primary' onClick={addNew} startIcon={<PiPlus size='0.8em' />}>
创建
</StyledButton>
</Button>
</ViewHeader>
{isLoading ? (
<Box display='grid' gridTemplateColumns='repeat(3, 1fr)' gap={gridSpacing}>
Expand Down
16 changes: 6 additions & 10 deletions packages/ui/src/views/assistants/openai/OpenAIAssistantLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import useApi from '@/hooks/useApi'
import { IconPlus, IconFileUpload } from '@tabler/icons-react'
import AssistantEmptySVG from '@/assets/images/assistant_empty.svg'
import { gridSpacing } from '@/store/constant'
import { PiPlus, PiUpload } from 'react-icons/pi'

// ==============================|| OpenAIAssistantLayout ||============================== //

Expand Down Expand Up @@ -121,17 +122,12 @@ const OpenAIAssistantLayout = () => {
title='OpenAI 助理'
onBack={() => navigate(-1)}
>
<Button
variant='outlined'
onClick={loadExisting}
startIcon={<IconFileUpload />}
sx={{ borderRadius: 2, height: 40 }}
>
Load
<Button variant='contained' color='primary' onClick={loadExisting} startIcon={<PiUpload size='0.8em' />}>
导入
</Button>
<Button variant='contained' color='primary' onClick={addNew} startIcon={<PiPlus size='0.8em' />}>
创建
</Button>
<StyledButton variant='contained' sx={{ borderRadius: 2, height: 40 }} onClick={addNew} startIcon={<IconPlus />}>
Add
</StyledButton>
</ViewHeader>
{isLoading ? (
<Box display='grid' gridTemplateColumns='repeat(3, 1fr)' gap={gridSpacing}>
Expand Down

0 comments on commit ea220e1

Please sign in to comment.