Skip to content

Commit

Permalink
Some Types Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadHassan03 committed Jun 15, 2024
1 parent f5e7ece commit cd67239
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/app/api/getTrails.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axios from 'app/config/axios';
import { api } from 'constants/api';
import { api } from '../constants/api';
import osmtogeojson from 'osmtogeojson';

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/app/components/card/CustomCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const CustomCard = ({
)}
</View>
<RSeparator />
{type === 'pack' && authUser?.id === data.owner_id? (
{type === 'pack' && authUser?.id === data?.owner_id? (
<>
<View
style={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export const PackCardHeader = ({ data, title }: PackCardHeaderProps) => {
</View>
</RStack>
}
link = {null}
actionsComponent={
user?.id === data.owner_id && (
<ThreeDotsMenu onOpenChange={handleActionsOpenChange}>
Expand Down
2 changes: 1 addition & 1 deletion packages/app/components/pack_table/TableItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const TableItem = ({

let rowData = [
<RText px={8}>{name}</RText>,
<RText px={0}>{${formatNumber(weight)} ${unit}}</RText>,
<RText px={0}>${formatNumber(weight)} ${unit}</RText>,
<RText px={0}>{quantity}</RText>,
];
if (hasPermissions) {
Expand Down

0 comments on commit cd67239

Please sign in to comment.