This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"name":"sourcecodes","icon":"wand","settings":"{\"settings\":\"{\\r\\n \\\"editor.inlineSuggest.enabled\\\": true,\\r\\n \\\"git.enableSmartCommit\\\": true,\\r\\n \\\"git.autofetch\\\": true,\\r\\n \\\"explorer.confirmDelete\\\": false,\\r\\n \\\"git.confirmSync\\\": false,\\r\\n \\\"files.exclude\\\": {\\r\\n \\\"**/.git\\\": true,\\r\\n \\\"**/.svn\\\": true,\\r\\n \\\"**/.hg\\\": true,\\r\\n \\\"**/CVS\\\": true,\\r\\n \\\"**/.DS_Store\\\": true,\\r\\n \\\"**/Thumbs.db\\\": true,\\r\\n \\\"**/node_modules\\\": true,\\r\\n \\\"**/.expo\\\": false,\\r\\n \\\"**/.expo-shared\\\": false,\\r\\n \\\"**/.nx\\\": true,\\r\\n \\\"**/.idea\\\": true,\\r\\n },\\r\\n \\\"editor.linkedEditing\\\": true,\\r\\n \\\"explorer.confirmDragAndDrop\\\": false,\\r\\n \\\"typescript.updateImportsOnFileMove.enabled\\\": \\\"always\\\",\\r\\n \\\"javascript.updateImportsOnFileMove.enabled\\\": \\\"always\\\",\\r\\n \\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import axios from 'axios'; | |
/** | |
* Cart API Client using Axios | |
* Manages all interactions with the cart API endpoints. | |
*/ | |
class CartApiClient { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"name":"sourcecodes","settings":"{\"settings\":\"{\\r\\n \\\"symbols.hidesExplorerArrows\\\": false,\\r\\n \\\"editor.inlineSuggest.enabled\\\": true,\\r\\n \\\"git.enableSmartCommit\\\": true,\\r\\n \\\"git.autofetch\\\": true,\\r\\n \\\"explorer.confirmDelete\\\": false,\\r\\n \\\"git.confirmSync\\\": false,\\r\\n \\\"github.copilot.enable\\\": {\\r\\n \\\"*\\\": true,\\r\\n \\\"plaintext\\\": true,\\r\\n \\\"markdown\\\": true,\\r\\n \\\"scminput\\\": false,\\r\\n \\\"typescriptreact\\\": true,\\r\\n \\\"cpp\\\": false,\\r\\n \\\"javascript\\\": true,\\r\\n \\\"javascriptreact\\\": true,\\r\\n \\\"typescript\\\": true,\\r\\n \\\"go\\\": false,\\r\\n \\\"haskell\\\": false,\\r\\n \\\"python\\\": true\\r\\n },\\r\\n \\\"editor.linkedEditing\\\": true,\\r\\n \\\"explorer.confirmDragAndDrop\\\": false,\\r\\n \\\"typescript.updateImportsOnFileMove.enabled\\\": \\\"always\\\",\\r\\n \\\"arduin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { createContext, useContext, ReactNode } from 'react'; | |
import { useStorageConcept } from './UseStorageConcept'; | |
type cartItem = { | |
id: number; | |
quantity: number; | |
}; | |
type shoppingCartContextType = { | |
getItemQuantity: (id: number) => number; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from 'react' | |
import { Alert, Text, View, Image, Button, TouchableOpacity, TextInput, Modal, Pressable, ViewBase, ScrollView } from 'react-native' | |
import { useNavigation, NavigationProp } from '@react-navigation/native'; | |
import { logo } from '../../assets/logo.png'; | |
import profile from '../../assets/user.png'; | |
import cart from '../../assets/bag.png'; | |
import { styles } from './CartStyles' | |
import { styles as homeStyles } from '../Home/HomeStyles' | |
const Cart = () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"env": { | |
"browser": true, | |
"es6": true | |
}, | |
"extends": [ | |
"plugin:react/recommended" | |
], | |
"parserOptions": { | |
"ecmaFeatures": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { defineConfig, transformWithEsbuild } from 'vite' | |
import react from '@vitejs/plugin-react' | |
// https://vitejs.dev/config/ | |
export default defineConfig({ | |
plugins: [ | |
react(), | |
// Workaround | |
{ |