Skip to content

Commit

Permalink
👌🏼 make better standards
Browse files Browse the repository at this point in the history
  • Loading branch information
arunachalam-monk committed Jun 14, 2024
1 parent d79b2eb commit e890f36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
12 changes: 5 additions & 7 deletions documentation/src/components/Sights/SightCard/SightCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,11 @@ export function SightCard({ item }: SightCardProps) {
copyPopupRef.current?.open();
};

const getOverlayAttributes: DynamicSVGCustomizationFunctions['getAttributes'] = () => {
return {
style: {
stroke: isDarkTheme ? '#ffffff' : '#000000',
},
};
};
const getOverlayAttributes: DynamicSVGCustomizationFunctions['getAttributes'] = () => ({
style: {
stroke: isDarkTheme ? '#ffffff' : '#000000',
},
});

return (
<>
Expand Down
3 changes: 1 addition & 2 deletions documentation/src/components/Sights/TopBar/TopBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ export interface TopBarProps {
onSelectTab: (tab: Tab) => void;
onLookupInput: (value: string) => void;
}

export const tabs = {
export const tabs: Record<'sights' | 'vehicles' | 'labels', Tab> = {
sights: {
key: 'sights',
items: Object.values(sights).map((sight) => ({
Expand Down

0 comments on commit e890f36

Please sign in to comment.