Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
🎨 🔥 remove unused variables
Browse files Browse the repository at this point in the history
remove unused variables

🎨 Improve format/structure, 🔥 Removing code/files
  • Loading branch information
TimMikeladze committed Dec 29, 2022
1 parent 867396c commit 57e2c38
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/components/AppPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const AppPage = (props: PropsWithChildren) => {
})}
>
<Sheet
sx={(theme) => ({
sx={() => ({
p: 2,
})}
>
Expand Down
3 changes: 0 additions & 3 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { GetServerSidePropsContext } from 'next';
import { Stack } from '@mui/joy';
import { useTranslation } from 'next-i18next';

const Landing = () => {
const { t } = useTranslation();

return <Stack spacing={1}></Stack>;
};

Expand Down
7 changes: 1 addition & 6 deletions src/util/getAppUrl.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import isDev from './is/isDev';
import isBrowser from './is/isBrowser';

const getAppUrl = (
path = ``,
noHttp?: boolean,
noPort?: boolean,
subdomain?: string,
) => {
const getAppUrl = (path = ``, noHttp?: boolean, noPort?: boolean) => {
if (isDev()) {
return `${noHttp ? `` : `http://`}${
isBrowser() ? window.location.hostname : `localhost`
Expand Down

1 comment on commit 57e2c38

@vercel
Copy link

@vercel vercel bot commented on 57e2c38 Dec 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.