Verified Commit 3123755d authored by Marek Veselý's avatar Marek Veselý
Browse files

feat: make exercise duration formatted in InfoButton

parent c689c346
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
import { Button, Collapse } from '@blueprintjs/core'
import type { Config } from '@inject/graphql'
import { TickOrCross } from '@inject/shared'
import { secondsFormatter, TickOrCross } from '@inject/shared'
import { useState, type FC } from 'react'

interface ConfigInfoProps {
@@ -33,7 +33,7 @@ const ConfigInfo: FC<ConfigInfoProps> = ({
          <tbody>
            <tr>
              <th>Exercise duration:</th>
              <td>{`${exerciseDuration} minutes`}</td>
              <td>{secondsFormatter({ seconds: exerciseDuration * 60 })}</td>
            </tr>
            <tr>
              <th>Custom email suffix:</th>