Skip to content

Commit

Permalink
Revert "Drag and drop components, browser favorites reordering (#5978)"
Browse files Browse the repository at this point in the history
This reverts commit 5feae69.
  • Loading branch information
ibrahimtaveras00 committed Aug 16, 2024
1 parent 3c017f0 commit 490b423
Show file tree
Hide file tree
Showing 54 changed files with 160 additions and 2,861 deletions.
4 changes: 0 additions & 4 deletions src/components/AnimatedComponents/AnimatedFlatList.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/DappBrowser/BrowserTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const HomepageOrWebView = ({
const isOnHomepage = useBrowserStore(state => !state.getTabData?.(tabId)?.url || state.getTabData?.(tabId)?.url === RAINBOW_HOME);

return isOnHomepage ? (
<Homepage tabId={tabId} />
<Homepage />
) : (
<FreezableWebView
addRecent={addRecent}
Expand Down
347 changes: 96 additions & 251 deletions src/components/DappBrowser/Homepage.tsx

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions src/components/DappBrowser/control-panel/ControlPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ import { address } from '@/utils/abbreviations';
import { fontWithWidthWorklet } from '@/styles/buildTextStyles';
import { useAppSessionsStore } from '@/state/appSessions';
import { DEFAULT_TAB_URL, RAINBOW_HOME } from '../constants';
import { FavoritedSite, useFavoriteDappsStore } from '@/state/browser/favoriteDappsStore';
import { useFavoriteDappsStore } from '@/state/favoriteDapps';
import { Site } from '@/state/browserHistory';
import WalletTypes from '@/helpers/walletTypes';
import { usePersistentDominantColorFromImage } from '@/hooks/usePersistentDominantColorFromImage';
import { findWalletWithAccount } from '@/helpers/findWalletWithAccount';
Expand Down Expand Up @@ -915,7 +916,7 @@ const FavoriteButton = React.memo(function FavButton({ animatedAccentColor }: {
if (isFavorite) {
removeFavorite(tabData?.url || '');
} else {
const site: FavoritedSite = {
const site: Omit<Site, 'timestamp'> = {
name: tabData?.title || '',
url: tabData?.url || '',
image: tabData?.logoUrl || '',
Expand Down
5 changes: 3 additions & 2 deletions src/components/DappBrowser/search-input/SearchInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ import { IS_IOS } from '@/env';
import * as i18n from '@/languages';
import { fontWithWidth } from '@/styles';
import font from '@/styles/fonts';
import { Site } from '@/state/browserHistory';
import { useBrowserStore } from '@/state/browser/browserStore';
import { FavoritedSite, useFavoriteDappsStore } from '@/state/browser/favoriteDappsStore';
import { useFavoriteDappsStore } from '@/state/favoriteDapps';
import { GestureHandlerButton } from '@/__swaps__/screens/Swap/components/GestureHandlerButton';
import { THICK_BORDER_WIDTH } from '@/__swaps__/screens/Swap/constants';
import { FadeMask } from '@/__swaps__/screens/Swap/components/FadeMask';
Expand Down Expand Up @@ -63,7 +64,7 @@ const TheeDotMenu = function TheeDotMenu({
if (isFavorite) {
removeFavorite(url);
} else {
const site: FavoritedSite = {
const site: Omit<Site, 'timestamp'> = {
name: getNameFromFormattedUrl(formattedUrlValue.value),
url: url,
image: useBrowserStore.getState().getActiveTabLogo() || `https://${formattedUrlValue.value}/apple-touch-icon.png`,
Expand Down
40 changes: 0 additions & 40 deletions src/components/drag-and-drop/DndContext.ts

This file was deleted.

Loading

0 comments on commit 490b423

Please sign in to comment.