Skip to content

Instantly share code, notes, and snippets.

View Usamaliaquat123's full-sized avatar
🥇
Street developer

Osamah Liaquat Usamaliaquat123

🥇
Street developer
View GitHub Profile
[
{
"name": "Rolls Royce",
"repairUrl": "https://800sayara.com/rolls-royce-repair/",
"logoUrl": "https://800sayara.com/wp-content/uploads/2024/03/rolls-royce-1.png",
"repairImageUrl": "https://800sayara.com/wp-content/uploads/2024/10/rolls-royce-repair-1024x467.webp"
},
{
"name": "Aston Martin",
"repairUrl": "https://800sayara.com/aston-martin-repair/",
{
"id": "0YvGglKuqzIWA2JdfiJD",
"dateOfPurchase": {
"seconds": 1742036111,
"nanoseconds": 439000000
},
"createdBy": {
"email": "[email protected]",
"id": "55n5CMVgtrdwu77KeAGTTf5kWGx1",
"phoneNumber": "+971523619890",
{
"service": "batteryChange",
"customerName": "Nkangi jafari",
"phoneNumber": "+971523619890",
"email": "[email protected]",
"description": "asdas",
"bookedDate": "2025-03-25",
"bookedTime": "15:15 PM",
"branch": "dubai",
"customerType": "warrantyClaims",
const NUM_OF_PAGES = 2;
const WAIT_BEFORE_EACH_PAGE = 6000;
const jsonToCsv = (jsonData) => {
if (jsonData.length === 0) {
return ''; // Return an empty string if jsonData is empty
}
const keys = Object.keys(jsonData[0]);
const csvRows = [];
csvRows.push(keys.join(","));
import React, { useState, useEffect } from 'react';
import {
Box,
CircularProgress,
Menu,
MenuItem,
IconButton,
TextField,
Button,
} from '@mui/material';
import {StyleSheet} from 'react-native';
import {colors} from '@theme';
import {
widthPercentageToDP as wp,
heightPercentageToDP as hp,
} from 'react-native-responsive-screen';
const styles = StyleSheet.create({
header: {
padding: wp(3),
flexDirection: 'row',
@Usamaliaquat123
Usamaliaquat123 / chat.tsx
Created September 9, 2021 10:57
chat component
import * as React from 'react';
import {
View,
StyleSheet,
Text,
Image,
TouchableOpacity,
Modal,
} from 'react-native';
import {connect} from 'react-redux';
<View>
<Text style={styles.headingContainer}>Sign up</Text>
{/* inputs container */}
<View style={styles.inputsContainer}>
{/* Email Container */}
<Text style={styles.emailTextContainer}>Email</Text>
<View style={[styles.inputContainer]}>
<TextInput
style={styles.authInputs}
value={this.state.username}
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
}