Skip to content

Commit

Permalink
zustand: fix deprecated default import
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesloetzsch committed Sep 8, 2023
1 parent 2c51c76 commit 5b18cfa
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend/components/Login.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect } from 'react'
import { useLoginQuery } from '../codegen/generates'
import create from 'zustand'
import { create } from 'zustand'
import { useTranslation, Trans } from 'react-i18next';

function jwtDecode(jwt: string) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/ngo/InvalidateTokenDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useAuthStore, AuthState } from '../Login'
import { fetcher } from '../../codegen/fetcher'
import { Created_Tokens } from '../../codegen/generates'
import { useTranslation } from 'react-i18next';
import create from 'zustand'
import { create } from 'zustand'

export interface ConfirmationState {
openedConfirmationFor: string,
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/ngo/SupervisorPasswordReset.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useAuthStore, AuthState } from '../Login'
import { fetcher } from '../../codegen/fetcher'
import { useTranslation } from 'react-i18next';
import create from 'zustand'
import { create } from 'zustand'

type SupervisorMail = string;
type SupervisorPassword = string;
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/supervisor/DeleteSupervisorDialog.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import create from 'zustand'
import { create } from 'zustand'
import { useAuthStore, AuthState } from '../../components/Login'
import { fetcher } from '../../codegen/fetcher'
import { useTranslation } from 'react-i18next';
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/user/LookupResult.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import styles from '../../styles/Supervisor.module.css'
import styles_core from '../../styles/Core.module.css'
import { Languages, LookupQuery, Supervisors, Offers } from '../../codegen/generates'
import create from 'zustand'
import { create } from 'zustand'
import { Checkbox } from '../Checkbox'
import { useTranslation, Trans } from 'react-i18next';
import constants from '../../i18n/const.json'
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/user/Supervisor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { flag } from '../../lib/urls'
import { useTranslation } from 'react-i18next';

/** Prevent XSS by `script` or `object` urls **/
function Sanitized_link({href, target='_blank'}: {href: string|null|undefined, target: string|undefined}) {
function Sanitized_link({href, target='_blank'}: {href: string|null|undefined, target?: string|undefined}) {
const secure = href && href.startsWith('http')
const fallback = !secure && href && `https://${href}`
return (
Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useRouter } from 'next/router'
import create from 'zustand'
import { create } from 'zustand'
import { useTranslation, Trans } from 'react-i18next';
import { Logos } from '../components/logos'

Expand Down

0 comments on commit 5b18cfa

Please sign in to comment.