mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 06:07:17 +01:00
Fixed imports.
This commit is contained in:
parent
ede658771e
commit
821d4b36c3
6 changed files with 38 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { useState, useEffect } from 'react';
|
||||
import { useRouter } from 'next/router';
|
||||
import { httpGet } from 'next-basics';
|
||||
import enUS from 'public/intl/country/en-US.json';
|
||||
import enUS from '../../../public/intl/country/en-US.json';
|
||||
|
||||
const countryNames = {
|
||||
'en-US': enUS,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { useState, useEffect } from 'react';
|
||||
import { useRouter } from 'next/router';
|
||||
import { httpGet } from 'next-basics';
|
||||
import enUS from 'public/intl/language/en-US.json';
|
||||
import enUS from '../../../public/intl/country/en-US.json';
|
||||
|
||||
const languageNames = {
|
||||
'en-US': enUS,
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { LOCALE_CONFIG } from 'lib/constants';
|
|||
import { getDateLocale, getTextDirection } from 'lib/lang';
|
||||
import useStore, { setLocale } from 'store/app';
|
||||
import useForceUpdate from 'components/hooks/useForceUpdate';
|
||||
import enUS from 'public/intl/messages/en-US.json';
|
||||
import enUS from '../../../public/intl/country/en-US.json';
|
||||
|
||||
const messages = {
|
||||
'en-US': enUS,
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import { Button, Flexbox, Icon, Modal, ModalTrigger, Text, useToasts } from 'rea
|
|||
import TeamJoinForm from './TeamJoinForm';
|
||||
import useApiFilter from 'components/hooks/useApiFilter';
|
||||
|
||||
export default function TeamsList() {
|
||||
export function TeamsList() {
|
||||
const { user } = useUser();
|
||||
const { formatMessage, labels, messages } = useMessages();
|
||||
const { filter, page, pageSize, handleFilterChange, handlePageChange, handlePageSizeChange } =
|
||||
|
|
@ -114,3 +114,5 @@ export default function TeamsList() {
|
|||
</Page>
|
||||
);
|
||||
}
|
||||
|
||||
export default TeamsList;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue