replace class with className, clean style

This commit is contained in:
2024-07-26 16:51:29 +08:00
parent 2b430bd395
commit 91f7043b7c
3 changed files with 6 additions and 6 deletions

View File

@@ -499,13 +499,13 @@ export default function ChatBOX(props: {
> >
<li> <li>
<p> <p>
<ChatBubbleLeftEllipsisIcon class="h-4 w-4" /> <ChatBubbleLeftEllipsisIcon className="h-4 w-4" />
Tokens: {chatStore.totalTokens}/{chatStore.maxTokens} Tokens: {chatStore.totalTokens}/{chatStore.maxTokens}
</p> </p>
</li> </li>
<li> <li>
<p> <p>
<ScissorsIcon class="h-4 w-4" /> <ScissorsIcon className="h-4 w-4" />
Cut: Cut:
{chatStore.postBeginIndex}/ {chatStore.postBeginIndex}/
{chatStore.history.filter(({ hide }) => !hide).length} {chatStore.history.filter(({ hide }) => !hide).length}
@@ -513,7 +513,7 @@ export default function ChatBOX(props: {
</li> </li>
<li> <li>
<p> <p>
<BanknotesIcon class="h-4 w-4" /> <BanknotesIcon className="h-4 w-4" />
Cost: ${chatStore.cost.toFixed(4)} Cost: ${chatStore.cost.toFixed(4)}
</p> </p>
</li> </li>
@@ -985,7 +985,7 @@ export default function ChatBOX(props: {
{generatingMessage && ( {generatingMessage && (
<span <span
class="p-2 m-2 rounded bg-white dark:text-black dark:bg-white dark:bg-opacity-50 dark:text-black dark:bg-opacity-50" class="p-2 m-2 rounded bg-white dark:text-black dark:bg-white dark:bg-opacity-50"
style={{ textAlign: "right" }} style={{ textAlign: "right" }}
onClick={() => { onClick={() => {
setFollow(!follow); setFollow(!follow);

View File

@@ -226,7 +226,7 @@ export default function Message(props: Props) {
setChatStore({ ...chatStore }); setChatStore({ ...chatStore });
}} }}
> >
<XMarkIcon class="w-4 h-4" /> <XMarkIcon className="w-4 h-4" />
</button> </button>
<span <span
onClick={(event: any) => { onClick={(event: any) => {

View File

@@ -44,7 +44,7 @@ export default function Search(props: {
<div> <div>
<input <input
autoFocus autoFocus
className="input input-bordered w-full w-full border" className="input input-bordered w-full border"
type="text" type="text"
placeholder="Type Something..." placeholder="Type Something..."
onInput={async (event: any) => { onInput={async (event: any) => {