Skip to content

Commit

Permalink
chore(examples): Update netlify deploy script to make generic (#1250)
Browse files Browse the repository at this point in the history
Fix minor linearlite issues and update deploy script to make generic
  • Loading branch information
msfstef committed May 9, 2024
1 parent c4876dd commit e74f731
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ npm run client:generate -- \
--service "${ELECTRIC_SERVICE}" \
--proxy "postgresql://postgres:${PG_PROXY_PASSWORD}@localhost:${tunnel_port}/postgres" || exit 1

npm run build || exit 1
npm run build-only || npm run build || exit 1

kill "${tunnel_pid}"
wait "${tunnel_pid}"
Expand Down
4 changes: 2 additions & 2 deletions examples/linearlite/src/components/LeftMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function LeftMenu() {
const [showAboutModal, setShowAboutModal] = useState(false)
const [showIssueModal, setShowIssueModal] = useState(false)
const { showMenu, setShowMenu } = useContext(MenuContext)!
const { connectivityState } = useConnectivityState()
const { status } = useConnectivityState()

const classes = classnames(
'absolute z-40 lg:static inset-0 transform duration-300 lg:relative lg:translate-x-0 bg-white flex flex-col flex-shrink-0 w-56 font-sans text-sm text-gray-700 border-r border-gray-100 lg:shadow-none justify-items-start',
Expand Down Expand Up @@ -70,7 +70,7 @@ function LeftMenu() {
>
<Avatar
name="Electric"
online={connectivityState == 'connected'}
online={status == 'connected'}
showOffline={true}
/>
<ExpandMore size={13} className="ml-2" />
Expand Down
4 changes: 2 additions & 2 deletions examples/linearlite/src/components/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import { Transition } from '@headlessui/react'
interface Props {
title?: string
isOpen: boolean
center: boolean
center?: boolean
className?: string
/* function called when modal is closed */
onDismiss?: () => void
children?: React.ReactNode
size: keyof typeof sizeClasses
size?: keyof typeof sizeClasses
}
const sizeClasses = {
large: 'w-175',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { PriorityOptions } from '../../types/issue'
interface Props {
id: string
button: ReactNode
filterKeyword: boolean
filterKeyword?: boolean
className?: string
onSelect?: (item: string) => void
}
Expand Down

0 comments on commit e74f731

Please sign in to comment.