build(deps): update latest

This commit is contained in:
Divlo
2022-05-12 20:35:46 +02:00
parent 4cd817bb01
commit f555e406ef
27 changed files with 6675 additions and 4615 deletions

View File

@ -40,7 +40,9 @@ export interface ApplicationProps {
title: string
}
export const Application: React.FC<ApplicationProps> = (props) => {
export const Application: React.FC<
React.PropsWithChildren<ApplicationProps>
> = (props) => {
const { children, path, guildLeftSidebar, title } = props
const { user } = useAuthentication()
@ -110,7 +112,7 @@ export const Application: React.FC<ApplicationProps> = (props) => {
const swipeableHandlers = useSwipeable({
trackMouse: false,
trackTouch: true,
preventDefaultTouchmoveEvent: true,
preventScrollOnSwipe: true,
onSwipedRight: () => {
if (visibleSidebars.right) {
return setVisibleSidebars({ ...visibleSidebars, right: false })

View File

@ -40,7 +40,7 @@ export const GuildPublic: React.FC<GuildPublicProps> = (props) => {
if (
axios.isAxiosError(error) &&
error.response?.status === 400 &&
typeof error.response?.data.defaultChannelId === 'number'
typeof error?.response?.data.defaultChannelId === 'number'
) {
const defaultChannelId = error.response.data.defaultChannelId as number
await router.push(`/application/${guild.id}/${defaultChannelId}`)

View File

@ -11,7 +11,9 @@ export interface SidebarProps {
isMobile: boolean
}
export const Sidebar: React.FC<SidebarProps> = (props) => {
export const Sidebar: React.FC<React.PropsWithChildren<SidebarProps>> = (
props
) => {
const { direction, visible, children, path, isMobile } = props
return (