Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 0.0.4 #43

Merged
merged 1 commit into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ volumes:
services:
surmai_server:
container_name: surmai_server
image: ghcr.io/rohitkumbhar/surmai:v0.0.3
# latest images point to released versions
# For the yet unreleased updates, use the main tag i.e.
# image: ghcr.io/rohitkumbhar/surmai:main
image: ghcr.io/rohitkumbhar/surmai:latest
volumes:
- surmai_data:/pb_data
ports:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "surmai",
"private": true,
"version": "0.0.3",
"version": "0.0.4",
"license": "MIT",
"type": "module",
"scripts": {
Expand Down
6 changes: 4 additions & 2 deletions src/components/user/UserInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import { IconChevronDown, IconLogout, IconUser } from '@tabler/icons-react';
import { Link, useNavigate } from 'react-router-dom';
import { getAttachmentUrl, logoutCurrentUser } from '../../lib/api';
import { useCurrentUser } from '../../auth/useCurrentUser.ts';
import { useTranslation } from 'react-i18next';

export const UserInfo = () => {
const navigate = useNavigate();
const { user } = useCurrentUser();
const { t } = useTranslation()

return (
<Menu
Expand Down Expand Up @@ -37,7 +39,7 @@ export const UserInfo = () => {
<Menu.Dropdown>
<Link to={'/profile'} className={classes.menuLink}>
<Menu.Item leftSection={<IconUser style={{ width: rem(16), height: rem(16) }} stroke={1.5} />}>
Profile
{t('profile', 'Profile')}
</Menu.Item>
</Link>
<Menu.Item
Expand All @@ -47,7 +49,7 @@ export const UserInfo = () => {
}}
leftSection={<IconLogout style={{ width: rem(16), height: rem(16) }} stroke={1.5} />}
>
Logout
{t('logout', 'Logout')}
</Menu.Item>
{import.meta.env.PACKAGE_VERSION && (<>
<Menu.Divider />
Expand Down