1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Use new alias

This commit is contained in:
Zhiyuan Zheng
2020-12-13 14:04:25 +01:00
parent cfd2d40d02
commit 48cab6053c
98 changed files with 456 additions and 459 deletions

View File

@ -1,4 +1,4 @@
import client from 'src/api/client'
import client from '@api/client'
export const accountFetch = async (key: string, { id }: { id: string }) => {
const res = await client({

View File

@ -1,4 +1,4 @@
import client from 'src/api/client'
import client from '@api/client'
export const emojisFetch = async () => {
const res = await client({

View File

@ -1,4 +1,4 @@
import client from 'src/api/client'
import client from '@api/client'
export const instanceFetch = async (
key: string,

View File

@ -1,4 +1,4 @@
import client from 'src/api/client'
import client from '@api/client'
export const listsFetch = async () => {
const res = await client({

View File

@ -1,4 +1,4 @@
import client from 'src/api/client'
import client from '@api/client'
export const relationshipFetch = async (
key: string,

View File

@ -1,4 +1,4 @@
import client from 'src/api/client'
import client from '@api/client'
export const searchFetch = async (
{} = {},

View File

@ -1,6 +1,6 @@
import { uniqBy } from 'lodash'
import client from 'src/api/client'
import client from '@api/client'
export const timelineFetch = async (
key: string,

View File

@ -1,4 +1,4 @@
import { store } from 'src/store'
import { store } from '@root/store'
const relativeTime = (date: string) => {
const units = {

View File

@ -1,7 +1,7 @@
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit'
import { RootState } from 'src/store'
import client from 'src/api/client'
import { RootState } from '@root/store'
import client from '@api/client'
export type InstancesState = {
local: {

View File

@ -1,6 +1,6 @@
import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit'
import { RootState } from 'src/store'
import { RootState } from '@root/store'
// import client from 'src/api/client'
export type SettingsState = {

View File

@ -1,8 +1,8 @@
import React, { createContext, useContext, useEffect, useState } from 'react'
import { useColorScheme } from 'react-native-appearance'
import { useSelector } from 'react-redux'
import { ColorDefinitions, getTheme } from 'src/utils/styles/themes'
import { getSettingsTheme } from '../slices/settingsSlice'
import { ColorDefinitions, getTheme } from '@utils/styles/themes'
import { getSettingsTheme } from '@utils/slices/settingsSlice'
type ContextType = {
mode: 'light' | 'dark'