test: add unit tests for ClearChatsButton and ThemeSelector components

This commit is contained in:
Daniel Avila 2023-06-11 15:30:50 -04:00 committed by Danny Avila
parent 931a89204c
commit 8c536cb93c
3 changed files with 71 additions and 1 deletions

View file

@ -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