Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: better new seed button style and text #40

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading