added delete functionality and updated button styles
This commit is contained in:
@@ -32,7 +32,7 @@ const SessionCard = () => {
|
||||
</div>
|
||||
</FormGroup>
|
||||
<button
|
||||
className="bg-[#26B170] text-white px-4 py-2 rounded hover:bg-green-700 transition w-full max-w-md"
|
||||
className="bg-[#26B170] text-white px-4 py-2 rounded hover:bg-green-700 transition w-full mx-auto"
|
||||
onClick={() => dispatch({ type: "SEARCH", payload: searchTerm })}
|
||||
disabled={searchTerm.trim().length < 2}
|
||||
>
|
||||
@@ -40,7 +40,7 @@ const SessionCard = () => {
|
||||
</button>
|
||||
{searchTerm && (
|
||||
<button
|
||||
className="bg-gray-300 text-gray-900 px-4 py-2 rounded hover:bg-gray-700 transition w-full max-w-md"
|
||||
className="bg-gray-300 text-gray-900 px-4 py-2 rounded hover:bg-gray-700 transition w-full mx-auto"
|
||||
onClick={() => {
|
||||
setSearchTerm("");
|
||||
dispatch({ type: "SEARCH", payload: "" });
|
||||
|
||||
@@ -13,7 +13,7 @@ const SessionCard = () => {
|
||||
<CardHeader title="Session" />
|
||||
<div className="flex flex-col gap-4">
|
||||
<button
|
||||
className="bg-[#26B170] text-white px-4 py-2 rounded hover:bg-green-700 transition w-full max-w-md"
|
||||
className="bg-[#26B170] text-white px-4 py-2 rounded hover:bg-green-700 transition w-full"
|
||||
onClick={() => {
|
||||
play();
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user