Skip to content

Commit

Permalink
OK-23606: tweak styles (#3646)
Browse files Browse the repository at this point in the history
* OK-23606: fix url link

* style: tweak styles
  • Loading branch information
kwoktung authored Oct 16, 2023
1 parent b3e1f4b commit 43706bc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions packages/kit/src/views/Me/AboutSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ import { useSettings } from '@onekeyhq/kit/src/hooks/redux';
import { useHelpLink } from '@onekeyhq/kit/src/hooks/useHelpLink';
import { setDevMode } from '@onekeyhq/kit/src/store/reducers/settings';

import { openUrlByWebview, openUrlExternal } from '../../../utils/openUrl';
import {
openUrl,
openUrlByWebview,
openUrlExternal,
} from '../../../utils/openUrl';

import AppRateSectionItem from './AppRateSectionItem';
import AutoUpdateSectionItem from './AutoUpdateSectionItem';
Expand Down Expand Up @@ -124,7 +128,7 @@ export const AboutSection = () => {
borderBottomWidth="1"
borderBottomColor="divider"
onPress={() =>
openUrlByWebview(
openUrl(
userAgreementUrl,
intl.formatMessage({
id: 'form__user_agreement',
Expand Down Expand Up @@ -155,7 +159,7 @@ export const AboutSection = () => {
borderBottomWidth="1"
borderBottomColor="divider"
onPress={() =>
openUrlByWebview(
openUrl(
privacyPolicyUrl,
intl.formatMessage({
id: 'form__privacy_policy',
Expand Down Expand Up @@ -186,7 +190,7 @@ export const AboutSection = () => {
borderBottomWidth="1"
borderBottomColor="divider"
onPress={() =>
openUrlByWebview(
openUrl(
'https://www.onekey.so',
intl.formatMessage({
id: 'form__website',
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/views/Swap/SelectRoutes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const RouteOption: FC<RouteOptionProps> = ({ response, index }) => {
</Box>
</Box>
<Box>
<Typography.Body1Strong>
<Typography.Body1Strong maxW="32" numberOfLines={1}>
{name || 'OneKey Swap'}
</Typography.Body1Strong>
<ArrivalTime typography="Body2" value={data?.arrivalTime} />
Expand Down

0 comments on commit 43706bc

Please sign in to comment.