-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: DOC-1281 Packs component eslint (#3394)
* chore: fixed eslint errors * chore: more fixes * chore: eslint behavior fixes * chore: fixes MIME error output * chore: comments * chore: more interfaces * save * chore: fixed tech component * chore: updated eslint * chore: fixed eslint * chore: add version in warning message * chore: fix table timer * chore: save * chore: fix prettier
- Loading branch information
1 parent
a1fb3da
commit 2af3356
Showing
28 changed files
with
414 additions
and
306 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,31 @@ | ||
import React from "react"; | ||
import PacksReadme from "@site/src/components/PacksReadme/PacksReadme"; | ||
import { Switch, Redirect } from 'react-router-dom' | ||
import { Switch, Redirect } from "react-router-dom"; | ||
|
||
export default function Packs(props: any) { | ||
interface Packs { | ||
route: PacksData; | ||
} | ||
|
||
interface PacksData { | ||
data: { | ||
name: string; | ||
version: string; | ||
parent: string; | ||
}; | ||
} | ||
|
||
export default function Packs(props: Packs) { | ||
return ( | ||
<> | ||
{props?.route?.data ? | ||
(<Switch> | ||
<Redirect to={`/integrations/packs?pack=${props.route.data.name}&version=${props.route.data.version}&parent=${props.route.data.parent}`} /> | ||
</Switch>) : ( | ||
<PacksReadme /> | ||
) | ||
} | ||
{props?.route?.data ? ( | ||
<Switch> | ||
<Redirect | ||
to={`/integrations/packs?pack=${props.route.data.name}&version=${props.route.data.version}&parent=${props.route.data.parent}`} | ||
/> | ||
</Switch> | ||
) : ( | ||
<PacksReadme /> | ||
)} | ||
</> | ||
); | ||
} |
This file contains 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
Oops, something went wrong.