Skip to content

Commit

Permalink
fix: imports and components declaration in heros
Browse files Browse the repository at this point in the history
Signed-off-by: Jad Chahed <[email protected]>
  • Loading branch information
Jad31 committed Jul 4, 2024
1 parent 51affc6 commit a08377f
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 30 deletions.
6 changes: 3 additions & 3 deletions website/src/pages/ComparePage/ComparePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import React, { useState, useEffect } from "react";
import { useState, useEffect } from "react";
import { useNavigate } from "react-router-dom";
import RingLoader from "react-spinners/RingLoader";
import useApiCall from "../../utils/Hook";
import Macrobench from "../../common/Macrobench";
import useApiCall from "@/utils/Hook";
import Macrobench from "@/common/Macrobench";
import { CompareData } from '@/types'
import CompareHero from "./components/CompareHero";

Expand Down
1 change: 0 additions & 1 deletion website/src/pages/ComparePage/components/CompareHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import React from "react";
import { twMerge } from "tailwind-merge";
import Hero, { HeroProps } from "@/common/Hero";

Expand Down
6 changes: 3 additions & 3 deletions website/src/pages/DailyPage/DailyPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import React, { useState, useEffect } from "react";
import { useState, useEffect } from "react";
import RingLoader from "react-spinners/RingLoader";
import { useNavigate } from "react-router-dom";
import useApiCall from "../../utils/Hook";
import useApiCall from "@/utils/Hook";

import ResponsiveChart from "./components/Chart";
import DailySummary from "./components/DailySummary";
import { MacroData, MacroDataValue } from "@/types";

import { secondToMicrosecond } from "../../utils/Utils";
import { secondToMicrosecond } from "@/utils/Utils";
import DailyHero from "./components/DailyHero";

interface DailySummarydata {
Expand Down
1 change: 0 additions & 1 deletion website/src/pages/DailyPage/components/DailyHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import React from "react";
import Hero, { HeroProps } from "@/common/Hero";

const heroProps: HeroProps = {
Expand Down
11 changes: 3 additions & 8 deletions website/src/pages/ForeignKeysPage/ForeignKeysPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import React, { useState, useEffect } from "react";
import { useState, useEffect } from "react";
import { useNavigate } from "react-router-dom";
import RingLoader from "react-spinners/RingLoader";
import { MacrosData } from '@/types'

import { errorApi } from "../../utils/Utils";
import Hero from "./components/ForeignKeysHero";
import FK from "./components/FK";
import ForeignKeysHero from "./components/ForeignKeysHero";

Expand All @@ -35,9 +34,7 @@ export interface Ref {
RCnumber: number;
}

interface ForeignKeysProps { }

const ForeignKeys: React.FC<ForeignKeysProps> = () => {
export default function ForeignKeys() {
const urlParams = new URLSearchParams(window.location.search);

const [gitRef, setGitRef] = useState<{ tag: string }>({
Expand Down Expand Up @@ -118,6 +115,4 @@ const ForeignKeys: React.FC<ForeignKeysProps> = () => {
</div>
</>
);
};

export default ForeignKeys;
};
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import React from "react";
import Dropdown from "@/common/Dropdown";
import Hero, { HeroProps } from "@/common/Hero";
import { twMerge } from "tailwind-merge";
Expand Down
4 changes: 2 additions & 2 deletions website/src/pages/PRPage/PRPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ limitations under the License.

import React from "react";
import { Link, useParams } from "react-router-dom";
import useApiCall from "../../utils/Hook";
import useApiCall from "@/utils/Hook";
import RingLoader from "react-spinners/RingLoader";

import { formatDate, errorApi } from "../../utils/Utils";
import { formatDate, errorApi } from "@/utils/Utils";
import { prDataTypes } from "@/types";

export default function PRPage() {
Expand Down
4 changes: 1 addition & 3 deletions website/src/pages/PRsPage/PRsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import React from "react";

import useApiCall from "../../utils/Hook";
import useApiCall from "@/utils/Hook";
import RingLoader from "react-spinners/RingLoader";

import PRTable from "./components/PRTable";
Expand Down
1 change: 0 additions & 1 deletion website/src/pages/PRsPage/components/PRHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import React from "react";
import Hero, { HeroProps } from "@/common/Hero";

const heroProps: HeroProps = {
Expand Down
4 changes: 2 additions & 2 deletions website/src/pages/SearchPage/SearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import React, { useEffect, useState } from "react";
import { useEffect, useState } from "react";
import { useNavigate } from "react-router-dom";
import RingLoader from "react-spinners/RingLoader";
import useApiCall from "../../utils/Hook";
import useApiCall from "@/utils/Hook";

import SearchHero from "./components/SearchHero";
import SearchMacro from "./components/SearchMacro";
Expand Down
1 change: 0 additions & 1 deletion website/src/pages/SearchPage/components/SearchHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import Hero, { HeroProps } from "@/common/Hero";
import React from "react";

interface SearchHeroProps {
setGitRef: (value: string) => void;
Expand Down
4 changes: 2 additions & 2 deletions website/src/pages/StatusPage/StatusPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import React, { useState } from "react";
import { useState } from "react";
import RingLoader from "react-spinners/RingLoader";
import useApiCall from "../../utils/Hook";
import useApiCall from "@/utils/Hook";
import { statusDataTypes } from "@/types";


Expand Down
3 changes: 1 addition & 2 deletions website/src/pages/StatusPage/components/StatusHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import React from "react";
import useApiCall from "../../../utils/Hook";
import useApiCall from "@/utils/Hook";
import { statusDataTypes } from "@/types";
import Hero, { HeroProps } from "@/common/Hero";

Expand Down

0 comments on commit a08377f

Please sign in to comment.