Skip to content

Commit

Permalink
lint; refactor; review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonhawkharris committed Oct 3, 2024
1 parent 080e062 commit c978b6a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 1 addition & 6 deletions vscode/webviews/chat/components/WelcomeFooter.module.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
.welcome-footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
padding: 1rem 1.0rem;
display: flex;
flex-flow: column nowrap;
Expand All @@ -24,13 +20,12 @@
.links {
display: flex;
flex-shrink: none;
flex-flow: row nowrap;
flex-direction: row;
padding: 1.0rem 1.5rem;
gap: 0.5rem;
flex-shrink: 0;
justify-content: space-around;
align-items: center;
min-width: 325px;
}

.item {
Expand Down
3 changes: 2 additions & 1 deletion vscode/webviews/chat/components/WelcomeFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { CodyIDE } from '@sourcegraph/cody-shared'
import styles from './WelcomeFooter.module.css'

import {
Expand Down Expand Up @@ -78,7 +79,7 @@ export default function WelcomeFooter() {

return (
<div className={styles.welcomeFooter}>
<div className={styles.tips}>{tips()}</div>
{CodyIDE.VSCode && <div className={styles.tips}>{tips()}</div>}
<div className={styles.links}>{links()}</div>
</div>
)
Expand Down
1 change: 1 addition & 0 deletions vscode/webviews/chat/components/WelcomeMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { PromptList } from '../../components/promptList/PromptList'
import { Button } from '../../components/shadcn/ui/button'
import { useActionSelect } from '../../prompts/PromptsTab'
import { View } from '../../tabs'
import { useUserAccountInfo } from '@/utils/useConfig'

Check failure on line 6 in vscode/webviews/chat/components/WelcomeMessage.tsx

View workflow job for this annotation

GitHub Actions / build

This import is unused.

Check failure on line 6 in vscode/webviews/chat/components/WelcomeMessage.tsx

View workflow job for this annotation

GitHub Actions / test-unit (ubuntu, 20)

'useUserAccountInfo' is declared but its value is never read.

Check failure on line 6 in vscode/webviews/chat/components/WelcomeMessage.tsx

View workflow job for this annotation

GitHub Actions / test-unit (windows, 20)

'useUserAccountInfo' is declared but its value is never read.

Check failure on line 6 in vscode/webviews/chat/components/WelcomeMessage.tsx

View workflow job for this annotation

GitHub Actions / test-unit (ubuntu, 18)

'useUserAccountInfo' is declared but its value is never read.

const localStorageKey = 'chat.welcome-message-dismissed'

Expand Down

0 comments on commit c978b6a

Please sign in to comment.