Skip to content

Commit

Permalink
chore: better new seed button style and text
Browse files Browse the repository at this point in the history
  • Loading branch information
samjcombs committed Dec 6, 2024
1 parent 7ad83a0 commit b4b53db
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions frontend/src/components/ui/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {Seed} from '@/models/Seed';
import {ApolloSandbox} from '@apollo/sandbox/react';
import {HandleRequest} from '@apollo/sandbox/src/helpers/postMessageRelayHelpers';
import {zodResolver} from '@hookform/resolvers/zod';
import {ChevronsUpDown, Plus, Settings, Trash} from 'lucide-react';
import {ChevronsUpDown, Plus, Settings, SquarePlus, Trash} from 'lucide-react';
import React, {useCallback, useEffect, useRef, useState} from 'react';
import {useForm} from 'react-hook-form';
import {useNavigate} from 'react-router';
Expand Down Expand Up @@ -81,14 +81,11 @@ import {Tabs, TabsContent, TabsList, TabsTrigger} from './tabs';
import {Textarea} from './textarea';
import {Toaster} from './toaster';
import {toast} from './use-toast';
import {Badge} from './badge';
import {SettingsBadge} from './settings-badge';

const Home = () => {
const navigate = useNavigate();

const [avatarUrl, setAvatarUrl] = useState<string>('/anonymous-avatar.svg');

const [dialogOpen, setDialogOpen] = React.useState(false);
const [graphs, setGraphs] = useState([]);

Expand Down Expand Up @@ -695,11 +692,13 @@ const Home = () => {
/>
{isSeedButtonVisible && (
<Button
id="create-seed-from-response"
id="new-seed-from-response"
onClick={handleCreateSeedClick}
className="absolute right-[121px] top-[76px] p-3 border border-gray-300 shadow-lg rounded-md text-sm"
className="absolute right-4 top-[78px] px-4 py-2 border border-transparent shadow-md rounded-md text-sm text-[#fdfdfd] bg-[#264250] hover:bg-[#1d3440] transition-all flex items-center gap-2 font-medium leading-[20px]"
style={{height: '35px'}}
>
Create Seed From Response
<SquarePlus size={14} color="#fdfdfd" />
New Seed from Response
</Button>
)}
</TabsContent>
Expand Down

0 comments on commit b4b53db

Please sign in to comment.