Skip to content

Commit

Permalink
refactor: update settings panel
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs committed Oct 6, 2024
1 parent 7c9f453 commit 5c07ec6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
16 changes: 12 additions & 4 deletions src/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,24 @@ export const SettingsMain = () => {
onClick={removeStorage}
/>

<Text>{t('Version', { version: PKG.version })}</Text>
<Text>{t('Data Version', { version: DATA_VERSION })}</Text>
<AnchorButton
icon={IconNames.CODE}
icon={IconNames.Bug}
rightIcon={IconNames.SHARE}
text={t('View source code on GitHub')}
text={t('Report issue')}
href={PKG.bugs.url}
target="_blank"
/>
<AnchorButton
icon={IconNames.Heart}
rightIcon={IconNames.SHARE}
text={t('Star project, support the author')}
href={PKG.homepage}
target="_blank"
/>
<DataExportArea />

<Text>{t('Version', { version: PKG.version })}</Text>
<Text>{t('Data Version', { version: DATA_VERSION })}</Text>
</Container>
)
}
Expand Down
13 changes: 1 addition & 12 deletions src/components/QuestCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ import {
Card,
Elevation,
H5,
Icon,
Menu,
MenuDivider,
MenuItem,
Popover,
Popover
} from '@blueprintjs/core'
import { IconNames } from '@blueprintjs/icons'
import React, { ComponentPropsWithoutRef, forwardRef } from 'react'
Expand Down Expand Up @@ -177,15 +175,6 @@ export const MoreOptions = forwardRef<
href={`https://richelieu-manager.net/quest/${code}`}
target="_blank"
/>
<MenuDivider />
<MenuItem
icon={IconNames.Heart}
labelElement={<Icon icon="share" />}
text={t('Star project, support the author')}
tagName="a"
href={`https://github.com/lawvs/poi-plugin-quest-2`}
target="_blank"
/>
</Menu>
)
return (
Expand Down

0 comments on commit 5c07ec6

Please sign in to comment.