Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mruwnik committed May 7, 2024
1 parent 75cb5bb commit b4c9f27
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 18 deletions.
12 changes: 8 additions & 4 deletions app/components/Button/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -134,19 +134,23 @@

/* state */

.primary:hover, .primary-large:hover {
.primary:hover,
.primary-large:hover {
background: var(--colors-teal-700, #17736e);
}

.primary-alt:hover, .primary-alt-large:hover {
.primary-alt:hover,
.primary-alt-large:hover {
color: var(--colors-teal-800, #146560);
}

.secondary:hover, .secondary-large:hover {
.secondary:hover,
.secondary-large:hover {
border: 1px solid var(--colors-teal-200, #a6d9d7) !important;
}

.secondary-alt:hover, .secondary-alt-large:hover {
.secondary-alt:hover,
.secondary-alt-large:hover {
border: 1px solid var(--colors-teal-200, #a6d9d7);
}

Expand Down
8 changes: 6 additions & 2 deletions app/components/Chatbot/ChatEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import type {Entry, AssistantEntry, StampyEntry, Citation, ErrorMessage} from '~

// icons
import IconBotSmall from '~/components/icons-generated/BotSmall'
import BotIcon from '~/components/icons-generated/Bot'
import LinkIcon from '~/components/icons-generated/LinkOut'
import PersonIcon from '~/components/icons-generated/Person'
import StampyIcon from '~/components/icons-generated/Stampy'
Expand Down Expand Up @@ -168,7 +167,12 @@ const ChatbotReply = ({question, phase, content, citationsMap}: AssistantEntry)

return (
<div>
<Title title="Stampy" Icon={IconStampySmall} answerType="bot" hint="Generated by an AI model" />
<Title
title="Stampy"
Icon={IconStampySmall}
answerType="bot"
hint="Generated by an AI model"
/>
<PhaseState />
<div className="padding-bottom-56 padding-left-56 large-reading">
{content?.split(/(\[\d+\])|(\n)/).map((chunk, i) => {
Expand Down
23 changes: 11 additions & 12 deletions app/components/Chatbot/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {useEffect, useRef, useState} from 'react'
import {useFetcher, useNavigate} from '@remix-run/react'
import StampyIcon from '~/components/icons-generated/Stampy'
import IconStampyLarge from '~/components/icons-generated/StampyLarge'
import IconStampySmall from '~/components/icons-generated/StampySmall'
import SendIcon from '~/components/icons-generated/PlaneSend'
Expand Down Expand Up @@ -168,17 +167,17 @@ const SplashScreen = ({
questions?: string[]
onQuestion: (v: string) => void
}) => (
<div className="padding-top-40">
<IconStampyLarge />
<div className="fcol-6 padding-bottom-40 padding-top-40">n
<h2 className="teal-500">Hi there, I'm Stampy.</h2>
<h2>I can answer your questions about AI Safety</h2>
</div>
<Followups
title="Not sure where to start? Try these:"
followups={questions?.map((text: string) => ({text}))}
onSelect={({text}: Followup) => onQuestion(text)}
/>
<div className="padding-top-40">
<IconStampyLarge />
<div className="fcol-6 padding-bottom-40 padding-top-40">
n<h2 className="teal-500">Hi there, I'm Stampy.</h2>
<h2>I can answer your questions about AI Safety</h2>
</div>
<Followups
title="Not sure where to start? Try these:"
followups={questions?.map((text: string) => ({text}))}
onSelect={({text}: Followup) => onQuestion(text)}
/>
</div>
)

Expand Down

0 comments on commit b4c9f27

Please sign in to comment.