diff --git a/src/containers/bible/index.module.scss b/src/containers/bible/index.module.scss index 33cdba05b..83d251fe1 100644 --- a/src/containers/bible/index.module.scss +++ b/src/containers/bible/index.module.scss @@ -30,6 +30,10 @@ margin-left: auto; } +.dropdownButton { + text-decoration: none; +} + .content { display: flex; flex-direction: column; diff --git a/src/containers/bible/index.tsx b/src/containers/bible/index.tsx index a068ccd46..41c42ec68 100644 --- a/src/containers/bible/index.tsx +++ b/src/containers/bible/index.tsx @@ -1,5 +1,4 @@ -import clsx from 'clsx'; -import React from 'react'; +import React, { useState } from 'react'; import { FormattedMessage } from 'react-intl'; import { BaseColors } from '~lib/constants'; @@ -17,12 +16,17 @@ import { getBibleAcronym } from '~src/lib/getBibleAcronym'; import { GetAudiobibleIndexDataQuery } from './__generated__'; import styles from './index.module.scss'; -// export type BibleIndexProps = GetAudiobibleIndexDataQuery; +type Version = NonNullable< + GetAudiobibleIndexDataQuery['collections']['nodes'] +>[0]; + export type BibleIndexProps = { - data: NonNullable; + data: Array; }; + function Bible({ data }: BibleIndexProps): JSX.Element { - console.log({ data }); + const [selected, setSelected] = useState(data[0]); + return (
@@ -32,12 +36,12 @@ function Bible({ data }: BibleIndexProps): JSX.Element { ( + trigger={(props) => (
@@ -68,7 +74,7 @@ function Bible({ data }: BibleIndexProps): JSX.Element {
- +
);