Update repo name

This commit is contained in:
Ariful Alam
2022-03-20 02:23:44 +06:00
parent b864c2cdd7
commit 20ac254201
17 changed files with 64 additions and 64 deletions

View File

@@ -1,7 +1,7 @@
import axios from 'axios';
import { Fragment, useCallback, useEffect, useState } from 'react';
import moment from 'moment';
import config from './ezprofile.config';
import config from './gitprofile.config';
import HeadTagEditor from './components/head-tag-editor';
import ErrorPage from './components/error-page';
import ThemeChanger from './components/theme-changer';
@@ -127,7 +127,7 @@ function App() {
error === 404 ? (
<p>
Please provide correct github username in{' '}
<code>src/ezprofile.config.js</code>
<code>src/gitprofile.config.js</code>
</p>
) : error === 429 ? (
<p>
@@ -174,7 +174,7 @@ function App() {
</div>
</div>
</div>
{/* DO NOT REMOVE/MODIFY THE FOOTER. FOR MORE INFO https://github.com/arifszn/ezprofile#-please-read */}
{/* DO NOT REMOVE/MODIFY THE FOOTER. FOR MORE INFO https://github.com/arifszn/gitprofile#-please-read */}
<footer className="p-4 footer bg-base-200 text-base-content footer-center">
<div className="card compact bg-base-100 shadow">
<div className="card-body">
@@ -183,11 +183,11 @@ function App() {
Made with{' '}
<a
className="text-primary"
href="https://github.com/arifszn/ezprofile"
href="https://github.com/arifszn/gitprofile"
target="_blank"
rel="noreferrer"
>
ezProfile
GitProfile
</a>{' '}
and
</p>

View File

@@ -1,7 +1,7 @@
import { getDevtoArticle, getMediumArticle } from 'article-api';
import moment from 'moment';
import { Fragment, useEffect, useState } from 'react';
import config from '../../ezprofile.config';
import config from '../../gitprofile.config';
import { ga, skeleton } from '../../helpers/utils';
import LazyImage from '../lazy-image';
import PropTypes from 'prop-types';

View File

@@ -14,7 +14,7 @@ import {
} from 'react-icons/fa';
import PropTypes from 'prop-types';
import { skeleton } from '../../helpers/utils';
import config from '../../ezprofile.config';
import config from '../../gitprofile.config';
const ListItem = ({ icon, title, value, link, skeleton = false }) => {
return (

View File

@@ -1,5 +1,5 @@
import { skeleton } from '../../helpers/utils';
import config from '../../ezprofile.config';
import config from '../../gitprofile.config';
import { Fragment } from 'react';
import PropTypes from 'prop-types';

View File

@@ -1,5 +1,5 @@
import { skeleton } from '../../helpers/utils';
import config from '../../ezprofile.config';
import config from '../../gitprofile.config';
import { Fragment } from 'react';
import PropTypes from 'prop-types';

View File

@@ -1,7 +1,7 @@
import { Fragment } from 'react';
import { Helmet } from 'react-helmet-async';
import PropTypes from 'prop-types';
import config from '../../ezprofile.config';
import config from '../../gitprofile.config';
import { isThemeDarkish } from '../../helpers/utils';
const HeadTagEditor = ({ profile, theme }) => {

View File

@@ -1,7 +1,7 @@
import { Fragment } from 'react';
import { AiOutlineStar, AiOutlineFork } from 'react-icons/ai';
import PropTypes from 'prop-types';
import config from '../../ezprofile.config';
import config from '../../gitprofile.config';
import { ga, languageColor, skeleton } from '../../helpers/utils';
const Project = ({ repo, loading }) => {

View File

@@ -1,4 +1,4 @@
import config from '../../ezprofile.config';
import config from '../../gitprofile.config';
import { skeleton } from '../../helpers/utils';
import PropTypes from 'prop-types';

View File

@@ -1,13 +1,13 @@
import { AiOutlineControl } from 'react-icons/ai';
import { skeleton } from '../../helpers/utils';
import config from '../../ezprofile.config';
import config from '../../gitprofile.config';
import PropTypes from 'prop-types';
const ThemeChanger = ({ theme, setTheme, loading }) => {
const changeTheme = (e, selectedTheme) => {
e.preventDefault();
document.querySelector('html').setAttribute('data-theme', selectedTheme);
localStorage.setItem('ezprofile-theme', selectedTheme);
localStorage.setItem('gitprofile-theme', selectedTheme);
setTheme(selectedTheme);
};

View File

@@ -1,4 +1,4 @@
import config from '../ezprofile.config';
import config from '../gitprofile.config';
import colors from '../data/colors.json';
import { hotjar } from 'react-hotjar';
@@ -7,8 +7,8 @@ export const getInitialTheme = () => {
return config.themeConfig.default;
}
if (!(localStorage.getItem('ezprofile-theme') === null)) {
let theme = localStorage.getItem('ezprofile-theme');
if (!(localStorage.getItem('gitprofile-theme') === null)) {
let theme = localStorage.getItem('gitprofile-theme');
return theme;
}