mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 09:50:15 +01:00
test: add unit tests for ClearChatsButton and ThemeSelector components
This commit is contained in:
parent
931a89204c
commit
8c536cb93c
3 changed files with 71 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ import { ThemeContext } from '~/hooks/ThemeContext';
|
|||
import React, { useState, useContext, useCallback } from 'react';
|
||||
import { useClearConversationsMutation } from '~/data-provider';
|
||||
|
||||
const ThemeSelector = ({ theme, onChange }: { theme: string, onChange: (value: string) => void }) => (
|
||||
export const ThemeSelector = ({ theme, onChange }: { theme: string, onChange: (value: string) => void }) => (
|
||||
<div className="flex items-center justify-between">
|
||||
<div>Theme</div>
|
||||
<select
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue